Re: [PATCH net-next v2 1/2] ipv6: mcast: annotate data-races around mca_flags
From: Ido Schimmel
Date: Thu Jun 11 2026 - 02:35:09 EST
On Tue, Jun 09, 2026 at 05:11:12PM +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>