]> git.ipfire.org Git - thirdparty/linux.git/commit
tcp: annotate data-races in tcp_req_diag_fill()
authorEric Dumazet <edumazet@google.com>
Thu, 28 Aug 2025 10:27:35 +0000 (10:27 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Aug 2025 02:29:24 +0000 (19:29 -0700)
commit8e60447f0831cdcafa2233e5547ee0eba8a5f8da
tree10dedfbf044efd6155257e86e4496274b68c2169
parent9a574257b968426df5c180df1199d4b082f80ff9
tcp: annotate data-races in tcp_req_diag_fill()

req->num_retrans and rsk_timer.expires are read locklessly,
and can be changed from tcp_rtx_synack().

Add READ_ONCE()/WRITE_ONCE() annotations.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250828102738.2065992-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_diag.c
net/ipv4/tcp_output.c