]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: add data-races annotations around tp->reordering, tp->snd_cwnd
authorEric Dumazet <edumazet@google.com>
Thu, 16 Apr 2026 20:03:08 +0000 (20:03 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Apr 2026 18:10:12 +0000 (11:10 -0700)
commit829ba1f329cb7cbd56d599a6d225997fba66dc32
tree3e202c664895cc35b2df8853795d9ac67dd18239
parent21e92a38cfd891538598ba8f805e0165a820d532
tcp: add data-races annotations around tp->reordering, tp->snd_cwnd

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

Fixes: bb7c19f96012 ("tcp: add related fields into SCM_TIMESTAMPING_OPT_STATS")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260416200319.3608680-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_metrics.c