tcp: annotate data-races around icsk->icsk_syn_retries
authorEric Dumazet <edumazet@google.com>
Wed, 19 Jul 2023 21:28:52 +0000 (21:28 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Jul 2023 19:34:18 +0000 (12:34 -0700)
commit3a037f0f3c4bfe44518f2fbb478aa2f99a9cd8bb
tree2f5d3a67231c9e4f1ca93e4458b4ccfb0554efe6
parent6e5e1de616bf5f3df1769abc9292191dfad9110a
tcp: annotate data-races around icsk->icsk_syn_retries

do_tcp_getsockopt() and reqsk_timer_handler() read
icsk->icsk_syn_retries while another cpu might change its value.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230719212857.3943972-7-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/inet_connection_sock.c
net/ipv4/tcp.c