From: Florian Westphal <fw@strlen.de>
To: zhuorao yang <alex000young@gmail.com>
Cc: pablo@netfilter.org, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, pabeni@redhat.com, willemb@google.com,
netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
netdev@vger.kernel.org
Subject: Re: [PATCH v4] netfilter: nft_ct: reject shared conntrack extension updates
Date: Fri, 4 Dec 2026 12:12:18 +0100 [thread overview]
Message-ID: <axKgC3hPW2ZYI3Gn@strlen.de> (raw)
In-Reply-To: <20261204073358.67941-1-alex000young@gmail.com>
zhuorao yang <alex000young@gmail.com> wrote:
> An unconfirmed conntrack is mutable and assumes exclusive skb ownership.
> Cloned skbs can otherwise reach nft_ct extension paths concurrently and
> call nf_ct_ext_add() on the same ct->ext. Since nf_ct_ext_add() uses
> krealloc(), this can free and replace one allocation while another CPU
> still uses it.
>
> Reject packets that reference a shared unconfirmed conntrack before any
> nft_ct extension allocation is attempted. This covers helper, expect,
> timeout, and event-cache extensions without adding a lock to the generic
> helper API.
Nak. Playing whack-a-mole with stunts like this is getting us nowhere.
There are dozen of similar bugs like this all over conntrack.
It'll take time to rewrite the core assumptions cleanly. Changes in
dozen different places is not the way to go.
prev parent reply other threads:[~2026-12-04 11:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 7:19 [PATCH v3] netfilter: nft_ct: reject shared conntrack extension updates zhuorao yang
2026-12-04 7:32 ` netdev-bot+sinfo
2026-12-04 7:33 ` [PATCH v4] " zhuorao yang
2026-12-04 7:36 ` netdev-bot+sinfo
2026-12-04 11:12 ` Florian Westphal [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=axKgC3hPW2ZYI3Gn@strlen.de \
--to=fw@strlen.de \
--cc=alex000young@gmail.com \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pablo@netfilter.org \
--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