]> git.itanic.dy.fi Git - linux-stable/commit
tcp: annotate data-races around rskq_defer_accept
authorEric Dumazet <edumazet@google.com>
Wed, 19 Jul 2023 21:28:54 +0000 (21:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:47:04 +0000 (08:47 +0200)
commit4f0a31f7325865a0a76a89cc06e9021965f82cf7
treeeaf560a748b3b1a8e1e6794f4f578be8225cb3a1
parentff0fedfc75405bb300ae3c4649d96c7d0b23c2a3
tcp: annotate data-races around rskq_defer_accept

[ Upstream commit ae488c74422fb1dcd807c0201804b3b5e8a322a3 ]

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