All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nf-next 0/3] netfilter: nft_set_rbtree: use cloned tree for insertions and removal
@ 2025-11-18 11:16 Florian Westphal
  2025-11-18 11:16 ` [PATCH nf-next 1/3] netfilter: nft_set_rbtree: prepare for two rbtrees Florian Westphal
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Florian Westphal @ 2025-11-18 11:16 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal

This series fixes false negative lookup bug in rbtree set backend that
can occur during transaction.

First two patches prepare for actual fix, which is coming in last patch.

All inserts/removals will now occur in a cloned copy, so packetpath can
no longer observe the problematic mixed-bag of old, current and new
elements.

The live tree will only have reachable elements that are active in the
current generation or were active in the previous generation (but are still
valid while packetpath holds rcu read lock).  The latter case is only
temporary, as new lookups already observe the updated tree).

Florian Westphal (3):
  netfilter: nft_set_rbtree: prepare for two rbtrees
  netfilter: nft_set_rbtree: factor out insert helper
  netfilter: nft_set_rbtree: do not modifiy live tree

 net/netfilter/nft_set_rbtree.c | 279 +++++++++++++++++++++++++--------
 1 file changed, 211 insertions(+), 68 deletions(-)
-- 
2.51.0

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-11-20 11:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-18 11:16 [PATCH nf-next 0/3] netfilter: nft_set_rbtree: use cloned tree for insertions and removal Florian Westphal
2025-11-18 11:16 ` [PATCH nf-next 1/3] netfilter: nft_set_rbtree: prepare for two rbtrees Florian Westphal
2025-11-18 11:16 ` [PATCH nf-next 2/3] netfilter: nft_set_rbtree: factor out insert helper Florian Westphal
2025-11-18 11:16 ` [PATCH nf-next 3/3] netfilter: nft_set_rbtree: do not modifiy live tree Florian Westphal
2025-11-19  8:29   ` kernel test robot
2025-11-19 10:48     ` Florian Westphal
2025-11-18 16:07 ` [PATCH nf-next 0/3] netfilter: nft_set_rbtree: use cloned tree for insertions and removal Fernando Fernandez Mancera
2025-11-18 16:46   ` Florian Westphal
2025-11-18 17:01     ` Fernando Fernandez Mancera
2025-11-19 12:52   ` Phil Sutter
2025-11-19 15:56     ` Florian Westphal
2025-11-19 22:14       ` Phil Sutter
2025-11-20 10:28         ` Florian Westphal
2025-11-20 11:39         ` Fernando Fernandez Mancera

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.