ipv6: annotate data-races around cnf.disable_ipv6
authorEric Dumazet <edumazet@google.com>
Wed, 28 Feb 2024 13:54:26 +0000 (13:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Mar 2024 08:42:30 +0000 (08:42 +0000)
commitd289ab65b89c1d4d88417cb6c03e923f21f95fae
tree6c1aefc21eab92fb79cd53a53f633009603631be
parent096361b15577a583afcc28179a08c75cf95e9dae
ipv6: annotate data-races around cnf.disable_ipv6

disable_ipv6 is read locklessly, add appropriate READ_ONCE()
and WRITE_ONCE() annotations.

v2: do not preload net before rtnl_trylock() in
    addrconf_disable_ipv6() (Jiri)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c
net/ipv6/ip6_input.c
net/ipv6/ip6_output.c