]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: add data-race annotations around tp->data_segs_out and tp->total_retrans
authorEric Dumazet <edumazet@google.com>
Thu, 16 Apr 2026 20:03:07 +0000 (20:03 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Apr 2026 18:10:12 +0000 (11:10 -0700)
commit21e92a38cfd891538598ba8f805e0165a820d532
tree27511c2b82c9278f5791eb89282a4c45a2dbc97a
parent267bf3cf9a6f0ffb98b8afd983c1950e835f07c9
tcp: add data-race annotations around tp->data_segs_out and tp->total_retrans

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

Fixes: 7e98102f4897 ("tcp: record pkts sent and retransmistted")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260416200319.3608680-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c
net/ipv4/tcp_output.c