summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@netfilter.org>2026-07-30 20:38:49 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2026-07-31 15:56:50 +0200
commit8e5fd2a55e2468f6225ef5af01ae58cdbcbae8cf (patch)
treeb477887f21d887f9f10c9538911632ad404e5ffe /tools/perf/scripts/python
parent30825970339c107bacaf7f61af90fcdb1f597ca1 (diff)
netfilter: ipset: rework cidr bookkeeping
According to sashiko, the current bookkeeping of cidr values are unsafe on weakly-ordered architectures. Replace the in-place updating with an RCU based method: create the new bookeeping structure, update and replace the old one with the new. Downside that we need to allocate memory when deleting a cidr entry - in case of memory pressure fall back to leave holes which possibility is taken into account at evaluation time. Thanks to Pablo (Pablo Neira Ayuso <pablo@netfilter.org>) and Cyntia (Cynthia <cynthia@kosmx.dev>) for helping me in debugging which resulted the patch "netfilter: ipset: allocate the proper memory for the generic hash structure" on which this very patch depends. Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions