net: add missing data-race annotations around sk->sk_peek_off
authorEric Dumazet <edumazet@google.com>
Fri, 28 Jul 2023 15:03:16 +0000 (15:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jul 2023 17:13:41 +0000 (18:13 +0100)
commit11695c6e966b0ec7ed1d16777d294cef865a5c91
treeb02401c8e049b0cd7d780be6505a27ea1e5e9707
parent3c5b4d69c358a9275a8de98f87caf6eda644b086
net: add missing data-race annotations around sk->sk_peek_off

sk_getsockopt() runs locklessly, thus we need to annotate the read
of sk->sk_peek_off.

While we are at it, add corresponding annotations to sk_set_peek_off()
and unix_set_peek_off().

Fixes: b9bb53f3836f ("sock: convert sk_peek_offset functions to WRITE_ONCE")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c
net/unix/af_unix.c