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

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

Fixes: fb31c9b9f6c8 ("tcp: add data bytes retransmitted stats")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260416200319.3608680-9-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c
net/ipv4/tcp_output.c