net: annotate data-races around sk->sk_reserved_mem
authorEric Dumazet <edumazet@google.com>
Fri, 28 Jul 2023 15:03:08 +0000 (15:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jul 2023 17:13:40 +0000 (18:13 +0100)
commitfe11fdcb4207907d80cda2e73777465d68131e66
treec00837ede0a87f094f944719cdca62b9cacc4bc8
parent7938cd15436873f649f31cb867bac2d88ca564d0
net: annotate data-races around sk->sk_reserved_mem

sk_getsockopt() runs locklessly. This means sk->sk_reserved_mem
can be read while other threads are changing its value.

Add missing annotations where they are needed.

Fixes: 2bb2f5fb21b0 ("net: add new socket option SO_RESERVE_MEM")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Wei Wang <weiwan@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c