]> www.infradead.org Git - users/hch/misc.git/commit
bpf: add missing ops lock around dev_xdp_attach_link
authorStanislav Fomichev <sdf@fomichev.me>
Mon, 31 Mar 2025 14:28:14 +0000 (07:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Apr 2025 23:06:15 +0000 (16:06 -0700)
commitd996e412b2dfc079bd44bff5b3bc743fdb6d7c90
tree49b16082bb217eb26bda6572646096d3a87325fc
parent367579274f60cb23c570ae5348966ab51e1509a4
bpf: add missing ops lock around dev_xdp_attach_link

Syzkaller points out that create_link path doesn't grab ops lock,
add it.

Reported-by: syzbot+08936936fe8132f91f1a@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/bpf/67e6b3e8.050a0220.2f068f.0079.GAE@google.com/
Fixes: 97246d6d21c2 ("net: hold netdev instance lock during ndo_bpf")
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250331142814.1887506-1-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c