On 12/8/23 3:12 AM, Eric Dumazet wrote:
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>
---
net/ipv6/datagram.c | 2 +-
net/ipv6/icmp.c | 4 +--
net/ipv6/ipv6_sockglue.c | 58 ++++++++++++++++++----------------------
net/ipv6/ping.c | 4 +--
net/ipv6/raw.c | 2 +-
net/ipv6/udp.c | 2 +-
net/l2tp/l2tp_ip6.c | 2 +-
7 files changed, 34 insertions(+), 40 deletions(-)
Reviewed-by: David Ahern <dsahern@kernel.org>