From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f73.google.com (mail-oa1-f73.google.com [209.85.160.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDBE9275848 for ; Fri, 5 Jun 2026 01:43:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780623814; cv=none; b=pTG0t6fRlhbijBGhDNPWdre4t/XybiSkpFaeeZ9mbekNRv0/i33rw3pWwEheqL+dlwqL3v3JGFgEyxmZ5wFSQ3fY06juBCTnAgYqSs3GBIFvV16YOI08GXaZpPQR8o4xPEJ6fHCTs0l4ujQDYci39WYvLKdi/aZA5HdiC4GdWSY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780623814; c=relaxed/simple; bh=58lYn4NE3WI2y/xPW1YkIlCmljVDW939C14m1Tbmczc=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=rhmnrol6kXTPNwZXiuZGFUuQJ9/WD7h3Xv5tczLVeQ1JLhoSeY8gCJLCVtBkwxOpJZcsTBEmd2bsS00Ua7+IHTYPTZaasu7XUkD5Ng1t/B0BpC7MjPP7U0hOWBwat8uE1QZwB5exPZBUNYlIGQDsgS6bxxTTcUskiJbr0FnrBQo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--yuyanghuang.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=c51QO5Gk; arc=none smtp.client-ip=209.85.160.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--yuyanghuang.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="c51QO5Gk" Received: by mail-oa1-f73.google.com with SMTP id 586e51a60fabf-4412c255fd4so1073632fac.3 for ; Thu, 04 Jun 2026 18:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1780623804; x=1781228604; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=h2ow12NtxvVPueHOKMb1jCbeRS9jueVp2e0oPGXbXU8=; b=c51QO5GkGBgh9Vxd/AmOswnmlqkCV3UjwTnagHYteBJrTvlfbBtpH99/n2Axj14n9s FB2NS2qB5/KBAOX/xA4E5BkIqfc9Cg17t86PZ+JeUXWUBQk0y5u4JQoYyXOlMJ7WjZNL GgBDut7sqv/gSMQKcwU0y5xiW7n7cE+vyb8FzxWr88fbW2T0UgT4fqZXnlWp02YWhwBf aVfxlx2PTG5f8b1ZnJxm9qu+zW8nMhWZQlT0jPmw9tapQiIv1zcrplH3ufai2jPnIMQD 5gZB2DPEgVo4GixB7tJhWQGo0ieYzguSL2tnUVLTdabAPWxT6wGm7GFkiJDO0gPeW+2Z cTBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780623804; x=1781228604; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=h2ow12NtxvVPueHOKMb1jCbeRS9jueVp2e0oPGXbXU8=; b=F/6k5Z/3vuMDnQp7g7iOx8VsD5HOiVURqBmGliuEqY/oIHvLJ5l5QDkcITx457gr75 9k8pRajBTRbv2P8UwLRhw6al53Y7UDmhSiJ/m7PeiJKGlQgXXsReM9Hvb5uF24zyiOjh pqnjL31ym5CAcmVBVj2VpNc3EPjRnl7IKStwegedPYawjLO3eQB4T781bgi7PrrzW+cU SwcwJqHcq4q96+YcoOuJycMn72Yu4ONGORNqpKi7HV4cAdoZt01hPtkLz7NNh48ZSpPt 1iqoApzPtVBwED5hpmTpNugz6WQSDYpmEl4WWvacGA8FgiAvVrSqEp1oHJ7vP8F2rEOO nJow== X-Forwarded-Encrypted: i=1; AFNElJ/lMwza5N+q2I3ZHuUVBPYFx6L1C4gBVsMCgcKK23bVs35Nf6CAnvvObCEY+FHMPWj+xa30vA6lT+ddlnc=@vger.kernel.org X-Gm-Message-State: AOJu0YzN8C58OB/8qx+5ehw8gaCgIEvF5m7YsP6q0xDlXBAt3eoM0HX7 NlwIkdZ4nVOdQAChQ0tnQmjlMr9xatF17yXL1o0R120PhkBG/iX7+O8thPIuPkQ0jfFMxLjfMNQ E+so19czX/GuU09pC0MrAaqSxog== X-Received: from oaff25.prod.google.com ([2002:a05:6871:c919:b0:441:1c3d:9b6f]) (user=yuyanghuang job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6871:358d:b0:42c:1f88:ac with SMTP id 586e51a60fabf-4413dcbd75emr730101fac.29.1780623803290; Thu, 04 Jun 2026 18:43:23 -0700 (PDT) Date: Fri, 5 Jun 2026 10:43:16 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.54.0.1032.g2f8565e1d1-goog Message-ID: <20260605014318.3890804-1-yuyanghuang@google.com> Subject: [PATCH net-next v2 0/2] ipv4: igmp: annotate diagnostic procfs data races From: Yuyang Huang To: Yuyang Huang Cc: "David S. Miller" , David Ahern , Eric Dumazet , Ido Schimmel , Jakub Kicinski , Paolo Abeni , Simon Horman , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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(-) -- 2.54.0.1032.g2f8565e1d1-goog