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

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

Fixes: 7156d194a077 ("tcp: add snd_ssthresh stat in SCM_TIMESTAMPING_OPT_STATS")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260416200319.3608680-5-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
14 files changed:
net/core/filter.c
net/ipv4/tcp.c
net/ipv4/tcp_bbr.c
net/ipv4/tcp_bic.c
net/ipv4/tcp_cdg.c
net/ipv4/tcp_cubic.c
net/ipv4/tcp_dctcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_metrics.c
net/ipv4/tcp_nv.c
net/ipv4/tcp_output.c
net/ipv4/tcp_vegas.c
net/ipv4/tcp_westwood.c
net/ipv4/tcp_yeah.c