aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorFlorian Westphal <[email protected]>2024-11-04 10:41:13 +0100
committerPablo Neira Ayuso <[email protected]>2024-11-05 22:06:10 +0100
commit9adbb4198bf6cf3634032871118a7052aeaa573f (patch)
tree17eddadb262d009c3ab7490815289678321c3190 /tools/perf/scripts/python/bin
parent08e52cccae11a4148a5810f0bd5614796994d221 (diff)
netfilter: nf_tables: avoid false-positive lockdep splat on rule deletion
On rule delete we get: WARNING: suspicious RCU usage net/netfilter/nf_tables_api.c:3420 RCU-list traversed in non-reader section!! 1 lock held by iptables/134: #0: ffff888008c4fcc8 (&nft_net->commit_mutex){+.+.}-{3:3}, at: nf_tables_valid_genid (include/linux/jiffies.h:101) nf_tables Code is fine, no other CPU can change the list because we're holding transaction mutex. Pass the needed lockdep annotation to the iterator and fix two comments for functions that are no longer restricted to rcu-only context. This is enough to resolve rule delete, but there are several other missing annotations, added in followup-patches. Fixes: 28875945ba98 ("rcu: Add support for consolidated-RCU reader checking") Reported-by: Matthieu Baerts <[email protected]> Tested-by: Matthieu Baerts <[email protected]> Closes: https://lore.kernel.org/netfilter-devel/[email protected]/ Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions