]> git.baikalelectronics.ru Git - kernel.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:50:48 +0000 (08:50 +0200)
commit918a1beb0abf96bfdb9b60038f74c2030ff34a53
tree180f45c13e78847679fbfe2cddf43b10e171ee8e
parentb02f8fce7cc5c074a2523f6cf841b9295a66bb7e
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