Re: [PATCH net-next v2 1/2] ipv6: mcast: annotate data-races around mca_flags
From: Eric Dumazet
Date: Tue Jun 09 2026 - 05:53:07 EST
On Tue, Jun 9, 2026 at 1:11 AM Yuyang Huang <sigefriedhyy@xxxxxxxxx> 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>
> ---
You forgot to carry Ido's tag? Have you changed something in this
patch compared to V1?