]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:37:44 +0000 (08:37 +0200)
commit8ce44cf35ef6e8ddfc352d73f1eb67bb539f8146
tree690299f1067bf6ed349ed7a2174f6ac2c6b00790
parentc822536b3e41518fb29979dc5d36f1df9ea37167
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