diff options
author | 2022-02-28 04:18:05 +0100 | |
---|---|---|
committer | 2022-02-28 22:34:04 +0100 | |
commit | 17a8f31bba7bac8cce4bd12bab50697da96e7710 (patch) | |
tree | 0f4827fd50e30d1a2b296ff0a7b9a024843a2b31 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | netfilter: fix use-after-free in __nf_register_net_hook() (diff) | |
download | linux-dev-17a8f31bba7bac8cce4bd12bab50697da96e7710.tar.xz linux-dev-17a8f31bba7bac8cce4bd12bab50697da96e7710.zip |
netfilter: egress: silence egress hook lockdep splats
Netfilter assumes its called with rcu_read_lock held, but in egress
hook case it may be called with BH readlock.
This triggers lockdep splat.
In order to avoid to change all rcu_dereference() to
rcu_dereference_check(..., rcu_read_lock_bh_held()), wrap nf_hook_slow
with read lock/unlock pair.
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions