tcp: annotate data-races around tp->tcp_tx_delay
authorEric Dumazet <edumazet@google.com>
Wed, 19 Jul 2023 21:28:47 +0000 (21:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:50:47 +0000 (08:50 +0200)
commit949eb838803a8dbd0325ec7f94a84a863d3da001
tree4e2131e4d54c2317cec92d5308c9f7e37dfb7cf5
parent0d4d6b083da9b033ddccef72d77f373c819ae3ea
tcp: annotate data-races around tp->tcp_tx_delay

[ Upstream commit 348b81b68b13ebd489a3e6a46aa1c384c731c919 ]

do_tcp_getsockopt() reads tp->tcp_tx_delay while another cpu
might change its value.

Fixes: a842fe1425cb ("tcp: add optional per socket transmit delay")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230719212857.3943972-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/tcp.c