From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (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 9E8BA3AC00 for ; Sun, 31 May 2026 03:07:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780196831; cv=none; b=rZWNSWbHEZWE4adKId8l/mr4BfCXK47TCPKBtmrXMqOqb5s1MheddkDOtwgmFBxA6xU6+XGdh2f7CBSKqYNJdG/sDLkY/VV28DgM/oPN0OT6I8owSJJjyoRx9fsVYSAk326hJYIzlmNLDfebAYei+w5XM0K+il4ikcbHLzds4Kw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780196831; c=relaxed/simple; bh=aZF8ibfcTpVWXO+FAfE4NlgLei4aig18a2/6Ql+psr8=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=hg+s/+G6e5JyFo2GV986ThQZiW5pOm7VVqb1PeHKOSzM4+mqh8si9Tq+mOqXJgqYgKk0wAKJ7JsVv2nDQ4Qq1z7a3R2Hav2uoFoM95PHEHFnwVTEjNGRRkkQBLSAa27ttebWk/lL6AHdsjgW6C8asmHyO1YLWmVrp8USRuY0FvY= 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=HBRlEiDl; arc=none smtp.client-ip=209.85.215.202 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="HBRlEiDl" Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-c85a2f1d1e5so92866a12.3 for ; Sat, 30 May 2026 20:07:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1780196830; x=1780801630; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=wcGe90UENUjqdbuFSlJAzTBdFXFc1tmmAGjowomBLqc=; b=HBRlEiDlmyRcg3hcNZBN2V4X0DaqTEvypfYixNbMGds3WcArO4UTi0O7m+dWmqTXrf OUT67nGUXCHy6AfRuC4qH0Nf9lTvwvW0piXbuG4JPGixr5oFtnF9r1oY8+Wti0NkKpKR wbb2kmrTpLSFNp72e2yDAT9THlY18xkL1m8wdIDHBpHkK1Tx7npuzoEPQhBxbmmgYteq 3pGSzjvTmSLqRuTDgFO9kDncLVqlZj1/NzswV9ucBLlGFCU6IlKVYSNzHL7fy7l+Mcv5 wgcxnlpZkIA+0EQDYLafg/EzbG2S84WRGUhqmcqz6EHa1+BrISJkhtlC7ClHmaYNclsK 3KkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780196830; x=1780801630; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wcGe90UENUjqdbuFSlJAzTBdFXFc1tmmAGjowomBLqc=; b=sUs1LmZeY+y8ANIAK4BFRdg5r96IeMOeyVnsynyR6C/6nwKfhE1IU7yuZHsjoPq5FS DUYzc7rpLAlJmuGLuEzxpN5CVX45KV7+/soeInfh4mHKmmOkB/LxM+CD6aetYqXBQqgI BtOWQv5T6LDEKsMADSdLF7PIglcWYwdgpeTeDw7y61a9F5bU1CAEdt0xjMW8KkT/DGlI DrCY5okiYbgHAMFcTln0P5+b+7/PUKMyudPZ0+jNWhhT1VCZyW766ORyqw2TWFX9xlrn cePeSsg5zbjujtJkCIQibx1uxJ2qU9/bldHFo6Wzz7UNS0gkVyYT/RKeBCjivpcXwgvD nTLA== X-Forwarded-Encrypted: i=1; AFNElJ/u62b4L848BbV7eY2qgWlLvS72P6Iy9B1CiD3DI1fqlhyQkJPV27SMrt7TBHgRy7KcWCc9jiVSx7JfSec=@vger.kernel.org X-Gm-Message-State: AOJu0Yy2mw1PLObm4aoDrvHcl3+h2LgVRadPMCoSz3oCl2ojLMRk++kx aIaJQqU/0JnbivrOY8vZnYuKntKOCIqJf7hVi2LxToEeOr8PlC21BdJOzZ+CNIkbG7vVv5s8+OM ienrFo+NI3rNEpFwxDh3r3YiTEQ== X-Received: from pgee24.prod.google.com ([2002:a63:1e18:0:b0:c82:c472:2b9a]) (user=yuyanghuang job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:6f06:b0:39c:787:f197 with SMTP id adf61e73a8af0-3b427f33690mr5573334637.36.1780196829612; Sat, 30 May 2026 20:07:09 -0700 (PDT) Date: Sun, 31 May 2026 11:07:02 +0800 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.823.g6e5bcc1fc9-goog Message-ID: <20260531030705.3754389-1-yuyanghuang@google.com> Subject: [PATCH net-next 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. 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.823.g6e5bcc1fc9-goog