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