net: annotate data-races around sk->sk_{rcv|snd}timeo
authorEric Dumazet <edumazet@google.com>
Fri, 28 Jul 2023 15:03:12 +0000 (15:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:42:23 +0000 (09:42 +0200)
commita2b5a9654a1d528c3df6a1b6d1e1e2cfabf9b0ad
tree5363d1c12b3b01a9c69e2cd93ee2cdfa203775d2
parent94515e9aa84c0458c8825ca661b61381146ba599
net: annotate data-races around sk->sk_{rcv|snd}timeo

[ Upstream commit 285975dd674258ccb33e77a1803e8f2015e67105 ]

sk_getsockopt() runs without locks, we must add annotations
to sk->sk_rcvtimeo and sk->sk_sndtimeo.

In the future we might allow fetching these fields before
we lock the socket in TCP fast path.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/sock.c
net/sched/em_meta.c