Re: [PATCH net-next v2] ipv4: igmp: annotate data-races around im->users
From: Eric Dumazet
Date: Fri May 22 2026 - 07:09:39 EST
On Fri, May 22, 2026 at 3:38 AM Jiayuan Chen <jiayuan.chen@xxxxxxxxx> wrote:
>
>
> On 5/22/26 5:39 PM, Yuyang Huang wrote:
> > /proc/net/igmp walks IPv4 multicast memberships under RCU and
> > prints im->users without holding RTNL, while multicast join and leave
> > paths update the field while holding RTNL. 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: Jiayuan Chen <jiayuan.chen@xxxxxxxxx>
Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>