]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: annotate data-races around sk->sk_{data_ready,write_space}
authorEric Dumazet <edumazet@google.com>
Wed, 25 Feb 2026 13:15:47 +0000 (13:15 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 27 Feb 2026 03:23:03 +0000 (19:23 -0800)
commit2ef2b20cf4e04ac8a6ba68493f8780776ff84300
tree90ac82f084444d3c556437e9043255063609961b
parent754a3d081aa205e86af5f889c947157060340185
net: annotate data-races around sk->sk_{data_ready,write_space}

skmsg (and probably other layers) are changing these pointers
while other cpus might read them concurrently.

Add corresponding READ_ONCE()/WRITE_ONCE() annotations
for UDP, TCP and AF_UNIX.

Fixes: 604326b41a6f ("bpf, sockmap: convert to generic sk_msg interface")
Reported-by: syzbot+87f770387a9e5dc6b79b@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/netdev/699ee9fc.050a0220.1cd54b.0009.GAE@google.com/
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: Jakub Sitnicki <jakub@cloudflare.com>
Cc: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260225131547.1085509-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/skmsg.c
net/ipv4/tcp.c
net/ipv4/tcp_bpf.c
net/ipv4/tcp_input.c
net/ipv4/tcp_minisocks.c
net/ipv4/udp.c
net/ipv4/udp_bpf.c
net/unix/af_unix.c