Skip to content

ipv4: igmp: annotate diagnostic procfs data races

Yuyang Huang lkml netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesApplied 2/2
  2. v12 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Remove "Fixes:" tag from the commit messages.
- Fix reverse Christmas tree variable declaration order in igmp_mc_seq_show().

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2ipv4: igmp: annotate data-races around in_dev->mc_countnet/ipv4/igmp.c+7 -40 repliesApplied
2/2ipv4: igmp: annotate data-races around timer-related fieldsnet/ipv4/igmp.c+13 -110 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchIdo Schimmel
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/2] 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.

Changes in v2:
- Remove "Fixes:" tag from the commit messages.
- Fix reverse Christmas tree variable declaration order in igmp_mc_seq_show().

Yuyang Huang (2):
ipv4: igmp: annotate data-races around in_dev->mc_count
ipv4: igmp: annotate data-races around timer-related fields

 net/ipv4/igmp.c | 35 ++++++++++++++++++++---------------
 1 file changed, 20 insertions(+), 15 deletions(-)
Signature · 1 line
2.54.0.1032.g2f8565e1d1-goog