Re: [PATCH net-next v2] ipv4: igmp: annotate data-races around im->users

From: Jiayuan Chen

Date: Fri May 22 2026 - 06:43:58 EST



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>