Linux Netfilter development
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nf,v2 1/2] netfilter: ctnetlink: reject expectation deletions on unconfirmed conntrack
Date: Wed, 29 Jul 2026 14:38:43 +0200	[thread overview]
Message-ID: <amn0Uwi-Q_j4-JPn@chamomile> (raw)
In-Reply-To: <20260729113548.389791-1-pablo@netfilter.org>

On Wed, Jul 29, 2026 at 01:35:47PM +0200, Pablo Neira Ayuso wrote:
> ctnetlink allows to reach expectations that refer to unconfirmed
> conntrack. The ct extension area of unconfirmed conntrack could be
> reallocated while the packet is in transit.
> 
> While holding the spinlock, check if the master conntrack is
> unconfirmed. The existing expectation spinlock ensures that the master
> conntrack is still alive because nf_ct_remove_expectations() tears down
> all expectations on conntrack removal. So, while holding the spinlock,
> the lifetime of the expectations is attached to the master conntrack.

Scratch this series, I'm not tackling the issue from the right angle.

Will follow up asap.

      parent reply	other threads:[~2026-07-29 12:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-29 11:35 [PATCH nf,v2 1/2] netfilter: ctnetlink: reject expectation deletions on unconfirmed conntrack Pablo Neira Ayuso
2026-07-29 11:35 ` [PATCH nf,v2 2/2] netfilter: nf_conntrack: move expectation hlist_head on ct extension realloc Pablo Neira Ayuso
2026-07-29 12:38 ` 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=amn0Uwi-Q_j4-JPn@chamomile \
    --to=pablo@netfilter.org \
    --cc=netfilter-devel@vger.kernel.org \
    /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