]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: annotate data-races around tp->plb_rehash
authorEric Dumazet <edumazet@google.com>
Thu, 16 Apr 2026 20:03:19 +0000 (20:03 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Apr 2026 18:10:14 +0000 (11:10 -0700)
commit9e89b9d03a2d2e30dcca166d5af52f9a8eceab25
treec01a7b3b1b7bee880edd6529ab29cab2c75cdd69
parent3a63b3d160560ef51e43fb4c880a5cde8078053c
tcp: annotate data-races around tp->plb_rehash

tcp_get_timestamping_opt_stats() intentionally runs lockless, we must
add READ_ONCE() and WRITE_ONCE() annotations to keep KCSAN happy.

Fixes: 29c1c44646ae ("tcp: add u32 counter in tcp_sock and an SNMP counter for PLB")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260416200319.3608680-15-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c
net/ipv4/tcp_plb.c