[PATCH net-next 03/14] ipv6: annotate data-races around addrconf sysctls
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Nov 10 03:01:23 UTC 2026
> The forwarding setting of conf/all, the per-device autoconf, accept_ra,
> accept_ra_min_lft, addr_gen_mode, ra_defrtr_metric, disable_ipv6 and mtu6
> settings, and the per-netns idgen_retries and idgen_delay, can be read
> concurrently with the sysctl handlers that update them with WRITE_ONCE().
> Add READ_ONCE() to the readers.
>
> KCSAN reports it when net.ipv6.conf.<dev>.autoconf is changed while
> Router Advertisements are received on the device:
>
> BUG: KCSAN: data-race in addrconf_prefix_rcv / do_proc_int_conv
>
> write (marked) to 0xffff8d7250116df4 of 4 bytes by task 767 on cpu 2:
> do_proc_int_conv+0xa9/0xd0
> proc_vec_conv+0x21/0x40
> proc_vec+0x21e/0x6f0
> [ ... ]
> ...
>
> value changed: 0x00000001 -> 0x00000000
>
> Signed-off-by: Jiayuan Chen <jiayuan.chen at linux.dev>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261109025425.328445-1-jiayuan.chen@linux.dev?part=3
More information about the Linux-security-module-archive
mailing list