Netdev List
 help / color / mirror / Atom feed
From: Steffen Klassert <steffen.klassert@secunet.com>
To: Sabrina Dubroca <sd@queasysnail.net>
Cc: <netdev@vger.kernel.org>, Herbert Xu <herbert@gondor.apana.org.au>
Subject: Re: [PATCH ipsec v2] xfrm: espintcp: reorder operations within espintcp_init_sk
Date: Wed, 14 Oct 2026 09:39:06 +0200	[thread overview]
Message-ID: <as8xmn5QhJfMwo2m@secunet.com> (raw)
In-Reply-To: <41fee34088a7ae150f255493b40f54ecbdc300df.1791462408.git.sd@queasysnail.net>

On Thu, Oct 08, 2026 at 02:38:32PM +0200, Sabrina Dubroca wrote:
> When enabled on a socket, espintcp sets the socket callbacks to its
> own before it has finished setting up its context and published it as
> icsk_ulp_data. Any one of those callbacks that gets called before will
> dereference a NULL icsk_ulp_data.
> 
> Fix this by reording the operations, and add memory barriers to ensure
> callers will have a struct espintcp_ctx available. Add a few
> WRITE_ONCE/READ_ONCE too while we're there.
> 
> Fixes: e27cca96cd68 ("xfrm: add espintcp (RFC 8229)")
> Cc: stable@vger.kernel.org
> Reported-by: Yuan Tan <yuantan098@gmail.com>
> Reported-by: Yifan Wu <yifanwucs@gmail.com>
> Reported-by: Juefei Pu <tomapufckgml@gmail.com>
> Reported-by: Xin Liu <bird@lzu.edu.cn>
> Reported-by: Peihan Liu <ronbogo@outlook.com>
> Reported-by: Yilin Zhu <zylzyl2333@gmail.com>
> Reported-by: Ren Wei <n05ec@lzu.edu.cn>
> Reported-by: Eulgyu Kim <eulgyukim@snu.ac.kr>
> Reported-by: Jaeyoung Chung <jjy600901@snu.ac.kr>
> Link: https://lore.kernel.org/all/c30b645074a1b379e0f7fe297f917c66137d9964.1778464688.git.zylzyl2333@gmail.com/
> Link: https://lore.kernel.org/all/20260819155349.3555804-1-jjy600901@snu.ac.kr
> Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>

Applied, thanks a lot Sabrina!

      parent reply	other threads:[~2026-10-14  7:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-08 12:38 [PATCH ipsec v2] xfrm: espintcp: reorder operations within espintcp_init_sk Sabrina Dubroca
2026-10-08 12:45 ` netdev-bot+sinfo
2026-10-14  7:39 ` 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=as8xmn5QhJfMwo2m@secunet.com \
    --to=steffen.klassert@secunet.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=netdev@vger.kernel.org \
    --cc=sd@queasysnail.net \
    /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