Re: [PATCH net-next 1/2] ipv6: mcast: annotate data-races around mca_flags
From: Ido Schimmel
Date: Tue Jun 09 2026 - 03:46:50 EST
On Fri, Jun 05, 2026 at 11:57:58PM +0900, Yuyang Huang wrote:
> /proc/net/igmp6 walks IPv6 multicast memberships under RCU and
> prints mca_flags without holding idev->mc_lock. The multicast paths
> update the field while holding idev->mc_lock.
>
> Annotate this intentional lockless snapshot with READ_ONCE() and the
> matching writers with WRITE_ONCE().
>
> Signed-off-by: Yuyang Huang <sigefriedhyy@xxxxxxxxx>
Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxx>