From: Pablo Neira Ayuso <pablo@netfilter.org>
To: zhuorao yang <alex000young@gmail.com>
Cc: Florian Westphal <fw@strlen.de>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Willem de Bruijn <willemb@google.com>,
netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
netdev@vger.kernel.org
Subject: Re: [PATCH net] netfilter: conntrack: serialize helper extension allocation
Date: Tue, 1 Dec 2026 10:21:24 +0100 [thread overview]
Message-ID: <aw6RlOy6hGlvQ2VU@chamomile> (raw)
In-Reply-To: <20261201085814.82573-1-alex000young@gmail.com>
On Tue, Dec 01, 2026 at 04:58:14PM +0800, zhuorao yang wrote:
> Two CPUs can add the helper extension to the same unconfirmed conntrack
> when shared skbs are evaluated concurrently. nf_ct_ext_add() then calls
> krealloc() on the same ct->ext from both CPUs. If the first call moves
> the extension allocation, the second call can double-free the old one.
>
> Serialize nf_ct_helper_ext_add() with the conntrack lock. The lock also
> covers publishing IPS_HELPER_BIT and initializing the expectation list,
> so a concurrent caller observes a fully initialized helper extension.
Thanks for your yet another duplicated patch.
Please, follow up the mailing list before posting duplicated patches.
Talking to the chat bot is not sufficient, you have to keep track on
the mailing list.
prev parent reply other threads:[~2026-12-01 9:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 8:58 [PATCH net] netfilter: conntrack: serialize helper extension allocation zhuorao yang
2026-12-01 9:21 ` Pablo Neira Ayuso [this message]
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=aw6RlOy6hGlvQ2VU@chamomile \
--to=pablo@netfilter.org \
--cc=alex000young@gmail.com \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=fw@strlen.de \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=willemb@google.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