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

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

Fixes: feb5f2ec6464 ("tcp: export packets delivery info")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260416200319.3608680-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp_ecn.h
net/ipv4/tcp.c
net/ipv4/tcp_input.c