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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jul 2023 17:13:41 +0000 (18:13 +0100)
commit285975dd674258ccb33e77a1803e8f2015e67105
treef7a2ba431a1d454a0bc3440efb4cbad46959058e
parente6d12bdb435d23ff6c1890c852d85408a2f496ee
net: annotate data-races around sk->sk_{rcv|snd}timeo

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>
net/core/sock.c
net/sched/em_meta.c