summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorJiayuan Chen <jiayuan.chen@linux.dev>2026-03-04 09:42:52 +0300
committerJakub Kicinski <kuba@kernel.org>2026-03-07 03:55:36 +0300
commitad4c9559603e1897e3a978c966b04424be68f4dc (patch)
tree5fcc74159f00b8c0c1f1073be31af79207551d62 /tools/testing
parent260d27b3aec9f30d68f9f3cacc674655897eb745 (diff)
downloadlinux-ad4c9559603e1897e3a978c966b04424be68f4dc.tar.xz
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>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions