]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: annotate data-races around tp->notsent_lowat
authorEric Dumazet <edumazet@google.com>
Wed, 19 Jul 2023 21:28:55 +0000 (21:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:47:04 +0000 (08:47 +0200)
commit6b88371f000fa65ecc19bfdc542b64682f11aaa8
tree0bb76885b0b68e85a66f821a57638c747f637935
parent4f0a31f7325865a0a76a89cc06e9021965f82cf7
tcp: annotate data-races around tp->notsent_lowat

[ Upstream commit 1aeb87bc1440c5447a7fa2d6e3c2cca52cbd206b ]

tp->notsent_lowat can be read locklessly from do_tcp_getsockopt()
and tcp_poll().

Fixes: c9bee3b7fdec ("tcp: TCP_NOTSENT_LOWAT socket option")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230719212857.3943972-10-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