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

np->sndflow reads are racy.

Use one bit ftom atomic inet->inet_flags instead,
IPV6_FLOWINFO_SEND setsockopt() can be 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>
13 files changed:
include/linux/ipv6.h
include/net/inet_sock.h
net/dccp/ipv6.c
net/ipv4/ping.c
net/ipv6/af_inet6.c
net/ipv6/datagram.c
net/ipv6/ipv6_sockglue.c
net/ipv6/ping.c
net/ipv6/raw.c
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c
net/l2tp/l2tp_ip6.c
net/sctp/ipv6.c