]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: egress: avoid a lockdep splat
authorFlorian Westphal <fw@strlen.de>
Fri, 7 Jan 2022 14:46:16 +0000 (15:46 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 9 Jan 2022 22:35:16 +0000 (23:35 +0100)
commitd0d2d42328ebf72b1a299fbcfac1ce33ff293cc8
tree2f445be8e7bf12d80ee45d111729c9f58efe1b5a
parent6bc41c4108dc30aa68261b7fbd2752bd240134d8
netfilter: egress: avoid a lockdep splat

include/linux/netfilter_netdev.h:97 suspicious rcu_dereference_check() usage!
2 locks held by sd-resolve/1100:
 0: ..(rcu_read_lock_bh){1:3}, at: ip_finish_output2
 1: ..(rcu_read_lock_bh){1:3}, at: __dev_queue_xmit
 __dev_queue_xmit+0 ..

The helper has two callers, one uses rcu_read_lock, the other
rcu_read_lock_bh().  Annotate the dereference to reflect this.

Fixes: 0c0f505da7c89 ("netfilter: Introduce egress hook")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter_netdev.h