Re: [PATCH net] kcm: use WRITE_ONCE() when changing lower socket callbacks

From: patchwork-bot+netdevbpf

Date: Sun Jun 14 2026 - 04:30:35 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Thu, 11 Jun 2026 13:35:43 +0800 you wrote:
> kcm_attach() replaces a live lower TCP socket's sk_data_ready and
> sk_write_space callbacks with KCM handlers, and kcm_unattach() restores
> them later. Those callback-pointer updates are still plain stores even
> though the same fields can be read and invoked concurrently on other
> CPUs.
>
> If another CPU observes an older callback snapshot after the live field
> has already been restored, callback execution can run with a mismatched
> target and sk_user_data state, leading to stale or misdirected wakeups.
>
> [...]

Here is the summary with links:
- [net] kcm: use WRITE_ONCE() when changing lower socket callbacks
https://git.kernel.org/netdev/net/c/47186409c092

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