public inbox for netfilter-devel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH nf 0/2] netfilter: nft_set_pipapo: fix UaF during gc walk
@ 2026-03-03 19:02 Florian Westphal
  2026-03-03 19:02 ` [PATCH nf 1/2] netfilter: nft_set_pipapo: split gc in unlink and reclaim phase Florian Westphal
  2026-03-03 19:02 ` [PATCH nf 2/2] netfilter: nft_set_pipapo: prevent soft lockup during gc walk Florian Westphal
  0 siblings, 2 replies; 4+ messages in thread
From: Florian Westphal @ 2026-03-03 19:02 UTC (permalink / raw)
  To: netfilter-devel; +Cc: sbrivio, Florian Westphal

Yiming Qian reports Use-after-free in the pipapo set type:
  Under a large number of expired elements, commit-time GC can run for a very
  long time in a non-preemptible context, triggering soft lockup warnings and
  RCU stall reports (local denial of service).

As-is, elements are unlinked from the clone.  But the expired elements
are also reachable from the live copy.

Therefore, we must not queue them for freeing until after the clone
has been exposed to other CPUs and one grace period has elapsed.

Split gc into unlink + reclaim phase to resolve this bug.

Florian Westphal (2):
  netfilter: nft_set_pipapo: split gc in unlink and reclaim phase
  netfilter: nft_set_pipapo: prevent soft lockup during gc walk

 net/netfilter/nft_set_pipapo.c | 69 +++++++++++++++++++++++++---------
 net/netfilter/nft_set_pipapo.h |  4 ++
 2 files changed, 56 insertions(+), 17 deletions(-)
-- 
2.52.0


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

end of thread, other threads:[~2026-03-03 23:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-03 19:02 [PATCH nf 0/2] netfilter: nft_set_pipapo: fix UaF during gc walk Florian Westphal
2026-03-03 19:02 ` [PATCH nf 1/2] netfilter: nft_set_pipapo: split gc in unlink and reclaim phase Florian Westphal
2026-03-03 23:50   ` Florian Westphal
2026-03-03 19:02 ` [PATCH nf 2/2] netfilter: nft_set_pipapo: prevent soft lockup during gc walk Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox