summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2026-06-05 15:11:22 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2026-06-14 12:51:54 +0200
commit635a10f6d07641b1588fdf251dd83d9f48b6ca0e (patch)
tree808ffc086ae7f6f4259371eb2af12b7707fd13c0 /include/linux
parent2e064ae85942f062dc854d0c2877a3f6cd86c0db (diff)
netfilter: nf_conncount: add sequence counter to detect tree modifications
There a two issues with traversal: 1. Key lookup (tree search) cannot detect concurrent modifications and may not find a result in case of parallel modification. 2. Worker does a lockless iteration. This is never safe. Add a sequence counter and re-do the lookup under lock in case the tree was modified / seqcount changed. gc_worker bugs are addressed in the next patch. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions