Netdev List
 help / color / mirror / Atom feed
From: Steffen Klassert <steffen.klassert@secunet.com>
To: "dongchenchen (A)" <dongchenchen2@huawei.com>
Cc: <herbert@gondor.apana.org.au>, <davem@davemloft.net>,
	<edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>,
	<horms@kernel.org>, <tpluszz77@gmail.com>,
	<netdev@vger.kernel.org>, <zhangchangzhong@huawei.com>,
	<xuchunxiao3@huawei.com>
Subject: Re: [PATCH net] xfrm: Fix dev use-after-free in xfrm async resumption
Date: Tue, 9 Jun 2026 08:14:39 +0200	[thread overview]
Message-ID: <aievTyGbNueY5BBt@secunet.com> (raw)
In-Reply-To: <7c79c7a1-897a-490e-91e1-83a1ac5ad27a@huawei.com>

On Tue, Jun 02, 2026 at 03:38:29PM +0800, dongchenchen (A) wrote:
> 
> Maybe we can fix it as bellow:
> Stash the original dev to fix refcnt imbalance.  Add rcu protection
> for new skb->dev set by xfrm_rcv_cb to fix potential race with device
> teardown.

Please submit the patch. In case we find issues then,
you can just do another version.

      reply	other threads:[~2026-06-09  6:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-29  9:21 [PATCH net] xfrm: Fix dev use-after-free in xfrm async resumption Dong Chenchen
2026-06-01  6:32 ` Steffen Klassert
2026-06-01 12:17   ` dongchenchen (A)
2026-06-02  7:38     ` dongchenchen (A)
2026-06-09  6:14       ` Steffen Klassert [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=aievTyGbNueY5BBt@secunet.com \
    --to=steffen.klassert@secunet.com \
    --cc=davem@davemloft.net \
    --cc=dongchenchen2@huawei.com \
    --cc=edumazet@google.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=tpluszz77@gmail.com \
    --cc=xuchunxiao3@huawei.com \
    --cc=zhangchangzhong@huawei.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