ipv6: lockless IPV6_ROUTER_ALERT_ISOLATE implementation
authorEric Dumazet <edumazet@google.com>
Tue, 12 Sep 2023 16:02:10 +0000 (16:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Sep 2023 09:33:48 +0000 (10:33 +0100)
commit83cd5eb654b320c1972254f243531f3f3cebcccf
treea8d72a0578be0a6c28249b7792498117fb84fee6
parent3cccda8db2cf2f2a224d55d5b6e2251d478c58ca
ipv6: lockless IPV6_ROUTER_ALERT_ISOLATE implementation

Reads from np->rtalert_isolate are racy.

Move this flag to inet->inet_flags to fix data-races.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ipv6.h
include/net/inet_sock.h
net/ipv6/ip6_output.c
net/ipv6/ipv6_sockglue.c