Re: [PATCH net-next] ipv6: mcast: annotate data-races around mca_users
From: Ido Schimmel
Date: Wed May 27 2026 - 03:16:34 EST
On Sun, May 24, 2026 at 11:24:56AM +0900, Yuyang Huang wrote:
> /proc/net/igmp6 walks IPv6 multicast memberships under RCU and prints
> mca_users without holding idev->mc_lock, while multicast join and leave
> paths update the field while holding idev->mc_lock. Annotate this
> intentional lockless snapshot with READ_ONCE() and the matching writers
> with WRITE_ONCE().
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Signed-off-by: Yuyang Huang <sigefriedhyy@xxxxxxxxx>
Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxx>