BPF List
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Chengfeng Ye <nicoyip.dev@gmail.com>
Cc: emil@etsalapatis.com, edumazet@google.com, ncardwell@google.com,
	kuniyu@google.com, john.fastabend@gmail.com,
	jakub@cloudflare.com, jiayuan.chen@linux.dev,
	davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
	horms@kernel.org, ast@kernel.org, daniel@iogearbox.net,
	netdev@vger.kernel.org, bpf@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH bpf v4] bpf, sockmap: Fix cork use-after-free in tcp_bpf_sendmsg()
Date: Fri, 24 Jul 2026 22:10:12 +0000	[thread overview]
Message-ID: <178493101265.3330129.14153213405975087302.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260724103856.3399001-1-nicoyip.dev@gmail.com>

Hello:

This patch was applied to bpf/bpf.git (master)
by Eduard Zingerman <eddyz87@gmail.com>:

On Fri, 24 Jul 2026 18:38:56 +0800 you wrote:
> tcp_bpf_sendmsg() keeps msg_tx across sk_stream_wait_memory(), which
> drops and reacquires the socket lock.  Its error path tries to decide
> whether msg_tx names the local temporary message by comparing it with
> the current value of psock->cork.
> 
> This comparison is unsafe when two threads send on the same socket:
> 
> [...]

Here is the summary with links:
  - [bpf,v4] bpf, sockmap: Fix cork use-after-free in tcp_bpf_sendmsg()
    https://git.kernel.org/bpf/bpf/c/2d66a033864e

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



  parent reply	other threads:[~2026-07-24 22:10 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-19 16:16 [PATCH] bpf, sockmap: Fix cork use-after-free in tcp_bpf_sendmsg() Chengfeng Ye
2026-07-20 16:17 ` sashiko-bot
2026-07-20 20:12 ` Emil Tsalapatis
2026-07-23 15:41   ` Chengfeng Ye
2026-07-23 15:34 ` [PATCH v2] bpf, sockmap: Fix cork ownership " Chengfeng Ye
2026-07-23 15:49   ` sashiko-bot
2026-07-23 16:26 ` [PATCH v3] " Chengfeng Ye
2026-07-23 16:39   ` sashiko-bot
2026-07-23 17:00   ` Jakub Kicinski
2026-07-24  9:40     ` Jakub Sitnicki
2026-07-24 10:02       ` Chengfeng Ye
2026-07-24 10:07         ` Jakub Sitnicki
2026-07-24 10:38           ` [PATCH bpf v4] bpf, sockmap: Fix cork use-after-free " Chengfeng Ye
2026-07-24 10:48             ` Jakub Sitnicki
2026-07-24 10:56             ` sashiko-bot
2026-07-24 22:10             ` patchwork-bot+netdevbpf [this message]
2026-07-24 10:43           ` [PATCH v3] bpf, sockmap: Fix cork ownership " Chengfeng Ye
2026-07-23 17:44   ` bot+bpf-ci
2026-07-25  6:09   ` bot+bpf-ci

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=178493101265.3330129.14153213405975087302.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=emil@etsalapatis.com \
    --cc=horms@kernel.org \
    --cc=jakub@cloudflare.com \
    --cc=jiayuan.chen@linux.dev \
    --cc=john.fastabend@gmail.com \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=nicoyip.dev@gmail.com \
    --cc=pabeni@redhat.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