]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: annotate data-races around icsk->icsk_retransmits
authorEric Dumazet <edumazet@google.com>
Fri, 22 Aug 2025 09:17:25 +0000 (09:17 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 25 Aug 2025 23:20:59 +0000 (16:20 -0700)
commite6f178be3c12cd6b8fb1b81dd0b9118e0a0d0333
tree53cac60e1e09cf9aed6d9748b4a225a2533ee16b
parent3ad9655422733e0ba67512b3ddce638aee31c0c7
tcp: annotate data-races around icsk->icsk_retransmits

icsk->icsk_retransmits is read locklessly from inet_sk_diag_fill(),
tcp_get_timestamping_opt_stats, get_tcp4_sock() and get_tcp6_sock().

Add corresponding READ_ONCE()/WRITE_ONCE() annotations.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Neal Cardwell <ncardwell@google.com>
Link: https://patch.msgid.link/20250822091727.835869-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/inet_diag.c
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c
net/ipv4/tcp_timer.c
net/ipv6/tcp_ipv6.c
net/mptcp/protocol.c