]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:47:03 +0000 (08:47 +0200)
commite187d88f3ba3e5cc86908a8260f13cba43f864cd
treed984b19ef35cdc414c14e82b6080c55971c34685
parentd5617eeb546edf6bfd233c410dec60ca06fc173f
tcp: annotate data-races around icsk->icsk_syn_retries

[ Upstream commit 3a037f0f3c4bfe44518f2fbb478aa2f99a9cd8bb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/inet_connection_sock.c
net/ipv4/tcp.c