]> git.baikalelectronics.ru Git - kernel.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:50:48 +0000 (08:50 +0200)
commite639397202435a0136b7cc4d255ffc982ed9876d
tree78438227cc254967ea04afe8e5e43814256a4e2e
parentd27a1aa37e327e34fa7b13dacb314699df1fa890
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