aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2024-11-04 10:41:19 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2024-11-05 22:07:12 +0100
commitcddc04275f95ca3b18da5c0fb111705ac173af89 (patch)
tree327062f50e9ff4416b016b4b40e6610178cec9ad /tools/perf/scripts/python/export-to-postgresql.py
parentnetfilter: nf_tables: must hold rcu read lock while iterating expression type list (diff)
downloadwireguard-linux-cddc04275f95ca3b18da5c0fb111705ac173af89.tar.xz
wireguard-linux-cddc04275f95ca3b18da5c0fb111705ac173af89.zip
netfilter: nf_tables: must hold rcu read lock while iterating object type list
Update of stateful object triggers: WARNING: suspicious RCU usage net/netfilter/nf_tables_api.c:7759 RCU-list traversed in non-reader section!! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 1 lock held by nft/3060: #0: ffff88810f0578c8 (&nft_net->commit_mutex){+.+.}-{4:4}, [..] ... but this list is not protected by the transaction mutex but the nfnl nftables subsystem mutex. Switch to nft_obj_type_get which will acquire rcu read lock, bump refcount, and returns the result. v3: Dan Carpenter points out nft_obj_type_get returns error pointer, not NULL, on error. Fixes: dad3bdeef45f ("netfilter: nf_tables: fix memory leak during stateful obj update"). Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions