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

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

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