]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: annotate data-races around tp->linger2
authorEric Dumazet <edumazet@google.com>
Wed, 19 Jul 2023 21:28:53 +0000 (21:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:37:45 +0000 (08:37 +0200)
commit3121d649e4c62897a4630fc806d595217ff6c28a
treed5416584a09a53a8570858777c128bfe4ef66acc
parentb1cd5655fc1366760b4e5262955e20360662bb72
tcp: annotate data-races around tp->linger2

[ Upstream commit 9df5335ca974e688389c875546e5819778a80d59 ]

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