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

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

WRITE_ONCE() annotations are already present.

Fixes: e08ab0b377a1 ("tcp: add bytes not sent to SCM_TIMESTAMPING_OPT_STATS")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260416200319.3608680-14-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c