net: annotate data-races around sk->sk_priority
authorEric Dumazet <edumazet@google.com>
Fri, 28 Jul 2023 15:03:18 +0000 (15:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jul 2023 17:13:41 +0000 (18:13 +0100)
commit8bf43be799d4b242ea552a14db10456446be843e
treee022e5d483cebc0f7a62f89b4095e07ab58ed599
parente5f0d2dd3c2faa671711dac6d3ff3cef307bcfe3
net: annotate data-races around sk->sk_priority

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

Other reads also happen without socket lock being held.

Add missing annotations where needed.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c
net/ipv4/ip_output.c
net/ipv4/ip_sockglue.c
net/ipv4/raw.c
net/ipv4/tcp_ipv4.c
net/ipv6/raw.c
net/ipv6/tcp_ipv6.c
net/packet/af_packet.c