Re: [PATCH net-next v2] net: annotate data races around sk->sk_prot

From: patchwork-bot+netdevbpf

Date: Fri Mar 06 2026 - 20:12:18 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Wed, 4 Mar 2026 14:42:52 +0800 you wrote:
> inet_sendmsg() and inet_recvmsg() access sk->sk_prot without
> lock_sock() or any other synchronization.
>
> sock_replace_proto() (used by sockmap), TLS and MPTCP can change
> sk->sk_prot under us, so these functions need READ_ONCE() to avoid
> load tearing.
>
> [...]

Here is the summary with links:
- [net-next,v2] net: annotate data races around sk->sk_prot
https://git.kernel.org/netdev/net-next/c/ad4c9559603e

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