Re: [PATCH 1/2] ipv4: igmp: annotate data-races around in_dev->mc_count

From: Paolo Abeni

Date: Thu Jun 04 2026 - 05:21:06 EST


On 6/4/26 11:11 AM, Paolo Abeni wrote:
> On 5/31/26 5:07 AM, Yuyang Huang wrote:
>> @@ -1922,7 +1923,7 @@ void ip_mc_destroy_dev(struct in_device *in_dev)
>>
>> while ((i = rtnl_dereference(in_dev->mc_list)) != NULL) {
>> in_dev->mc_list = i->next_rcu;
>> - in_dev->mc_count--;
>> + WRITE_ONCE(in_dev->mc_count, in_dev->mc_count - 1);
>> ip_mc_clear_src(i);
>> ip_ma_put(i);
>
> The patch LGTM,
But it does not apply cleanly to net. Please rebase and report, adding
the target tree (`net`) and a revision number (`v2`) in the subj prefix.

/P