]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'ipv4-igmp-annotate-diagnostic-procfs-data-races'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 9 Jun 2026 11:19:34 +0000 (13:19 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 9 Jun 2026 11:19:34 +0000 (13:19 +0200)
Yuyang Huang says:

====================
ipv4: igmp: annotate diagnostic procfs data races

This patch series addresses several unannotated data races between lockless
RCU-protected diagnostic reads in /proc/net/igmp (igmp_mc_seq_show())
and concurrent writes in serialized paths (RTNL and group spinlocks).

Following the precedent in commit 061c0aa740d5 ("ipv4: igmp: annotate
data-races around im->users"), we annotate these intentional data races
using READ_ONCE() and WRITE_ONCE() macros.

- Patch 1 annotates races around `in_dev->mc_count` (interface-level joins).
- Patch 2 annotates races around active timer-related state tracking fields
  (`tm_running`, `reporter`, `expires`) on individual multicast groups.
====================

Link: https://patch.msgid.link/20260605014318.3890804-1-yuyanghuang@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Trivial merge