From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Cc: sbrivio@redhat.com, Florian Westphal <fw@strlen.de>
Subject: [PATCH nf 0/2] netfilter: nft_set_pipapo: fix UaF during gc walk
Date: Tue, 3 Mar 2026 20:02:06 +0100 [thread overview]
Message-ID: <20260303190218.19781-1-fw@strlen.de> (raw)
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
next reply other threads:[~2026-03-03 19:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 19:02 Florian Westphal [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260303190218.19781-1-fw@strlen.de \
--to=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=sbrivio@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox