Thread (6 messages) flat view 6 messages, 3 authors, 2023-12-11

Re: [PATCH net-next 2/2] ipv6: annotate data-races around np->ucast_oif

From: David Ahern <dsahern@kernel.org>
Date: 2023-12-08 16:08:16

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>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help