]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: annotate data-races around tp->bytes_sent
authorEric Dumazet <edumazet@google.com>
Thu, 16 Apr 2026 20:03:12 +0000 (20:03 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Apr 2026 18:10:12 +0000 (11:10 -0700)
commitee43e957ce2ec77b2ec47fef28f3c0df6ab01a31
treed49300edb2d4dce1cfd4f5a1fca91dcca306ea00
parent124199444de467767175a9004e1574dc42523e62
tcp: annotate data-races around tp->bytes_sent

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

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