]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: annotate data-races around tp->keepalive_probes
authorEric Dumazet <edumazet@google.com>
Wed, 19 Jul 2023 21:28:51 +0000 (21:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:47:03 +0000 (08:47 +0200)
commitd5617eeb546edf6bfd233c410dec60ca06fc173f
treeef1eae803f0eb13f71f0bb9f98cb3f6221152bb4
parent9b2296a2ad2326cd2a175b913fdf2a4a4da3aaa6
tcp: annotate data-races around tp->keepalive_probes

[ Upstream commit 6e5e1de616bf5f3df1769abc9292191dfad9110a ]

do_tcp_getsockopt() reads tp->keepalive_probes 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-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/tcp.h
net/ipv4/tcp.c