]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: add data-race annotations for TCP_NLA_SNDQ_SIZE
authorEric Dumazet <edumazet@google.com>
Thu, 16 Apr 2026 20:03:11 +0000 (20:03 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Apr 2026 18:10:12 +0000 (11:10 -0700)
commit124199444de467767175a9004e1574dc42523e62
treedaf51a74d46793eb2c714d1cdb13a4a8a456b501
parentfaa886ad3ce5fc8f5156493491fe189b2b726bc9
tcp: add data-race annotations for TCP_NLA_SNDQ_SIZE

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

Fixes: 87ecc95d81d9 ("tcp: add send queue size stat in SCM_TIMESTAMPING_OPT_STATS")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260416200319.3608680-7-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c