Re: [PATCH bpf-next v2] bpf, sockmap: Fix psock incorrectly pointing to sk
From: patchwork-bot+netdevbpf
Date: Tue Jun 10 2025 - 13:54:25 EST
Hello:
This patch was applied to bpf/bpf-next.git (net)
by Daniel Borkmann <daniel@xxxxxxxxxxxxx>:
On Mon, 9 Jun 2025 10:59:08 +0800 you wrote:
> We observed an issue from the latest selftest: sockmap_redir where
> sk_psock(psock->sk) != psock in the backlog. The root cause is the special
> behavior in sockmap_redir - it frequently performs map_update() and
> map_delete() on the same socket. During map_update(), we create a new
> psock and during map_delete(), we eventually free the psock via rcu_work
> in sk_psock_drop(). However, pending workqueues might still exist and not
> be processed yet. If users immediately perform another map_update(), a new
> psock will be allocated for the same sk, resulting in two psocks pointing
> to the same sk.
>
> [...]
Here is the summary with links:
- [bpf-next,v2] bpf, sockmap: Fix psock incorrectly pointing to sk
https://git.kernel.org/bpf/bpf-next/c/76be5fae32fe
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html