ipv6: annotate data-races around np->ucast_oif
authorEric Dumazet <edumazet@google.com>
Fri, 8 Dec 2023 10:12:44 +0000 (10:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2023 10:59:17 +0000 (10:59 +0000)
commit1ac13efd614c752d3b47bbfb58e7c36eeb92cb5a
tree34623c8c03fc41bcf60cea58e0db4a8bb4ea7f35
parentd2f011a0bf28c090ad75c9b1d306f2e1dda1c9bc
ipv6: annotate data-races around np->ucast_oif

np->ucast_oif is read locklessly in some contexts.

Make all accesses to this field lockless, adding appropriate
annotations.

This also makes setsockopt( IPV6_UNICAST_IF ) lockless.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/datagram.c
net/ipv6/icmp.c
net/ipv6/ipv6_sockglue.c
net/ipv6/ping.c
net/ipv6/raw.c
net/ipv6/udp.c
net/l2tp/l2tp_ip6.c