Files
linux/net
Jiayuan Chen ad4c955960 net: annotate data races around sk->sk_prot
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.

Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260304064253.16955-1-jiayuan.chen@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-03-06 16:55:36 -08:00
..
2026-02-27 17:24:58 -08:00
2026-03-02 18:48:43 -08:00
2024-10-08 15:16:59 +02:00
2025-09-18 12:32:06 +02:00