Re: [PATCH net] net/sched: cls_bpf: reject dev-bound programs bound to a different device

[email protected]
Newsgroups org.kernel.vger.stable,org.kernel.vger.bpf,org.kernel.vger.netdev
Message-ID <178661280589.2324085.9605319277143570297.git-patchwork-notify@kernel.org>
Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:

On Sun,  9 Aug 2026 05:44:18 -0400 you wrote:
> cls_bpf_prog_from_efd() obtained a SCHED_CLS program via
> bpf_prog_get_type_dev() but never verified that a device-bound (offloaded)
> program's bound netdev matches the TC netdev the classifier is being
> attached to. This let a program loaded with prog_ifindex for device A be
> attached via cls_bpf + skip_sw to device B; deleting device A then
> destroyed the program's offload state while it was still attached to
> device B, triggering a netdevsim WARN (panic with panic_on_warn=1).
> 
> [...]

Here is the summary with links:
  - [net] net/sched: cls_bpf: reject dev-bound programs bound to a different device
    https://git.kernel.org/netdev/net/c/120977e2c096

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.