From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.secunet.com (mx1.secunet.com [62.96.220.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E01831ED7D for ; Thu, 18 Jun 2026 07:24:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.96.220.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781767453; cv=none; b=IyT+Sht8cYaqb//Jv/VoVBypo1h5KNnXM3vMk5zRk2MQNOaa4Vr1Of2c9j5BZm585fgpl8Yi0teR+3CX1Af0MClg13dRsDK3+ErGKZH3Y4LQOLEXA6McMbvJ78AJNW8tZ2nRYhxAKpFXTGvq5Hs6vjRvB0lr0Gkd9A3ganx4Rxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781767453; c=relaxed/simple; bh=QMZj6JTpu964iMP3q79vrett+s/8WrJIfvIEbpyAhCo=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D6isN27dz8pW+dSexLcny4rGEbHbAIc8cnbJtYC4zUQZK5NaoabSDFI8pEU4V9cLV2DdEYLEM/Uq6lYZqnxz31MulpF/QEgmTm3Mkw1VBHbQFGrA1rtg6GfyZaDiIgQZYTHd0kOWOFBOnlIORAr9tSnbUWsuIkptxgohmtMjAXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b=Edzvnx1S; arc=none smtp.client-ip=62.96.220.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=secunet.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=secunet.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b="Edzvnx1S" Received: from localhost (localhost [127.0.0.1]) by mx1.secunet.com (Postfix) with ESMTP id 699382074F; Thu, 18 Jun 2026 09:24:09 +0200 (CEST) X-Virus-Scanned: by secunet Received: from mx1.secunet.com ([127.0.0.1]) by localhost (mx1.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q3FleXRWhi6I; Thu, 18 Jun 2026 09:24:08 +0200 (CEST) Received: from EXCH-01.secunet.de (rl1.secunet.de [10.32.0.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.secunet.com (Postfix) with ESMTPS id 8BE2420704; Thu, 18 Jun 2026 09:24:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.secunet.com 8BE2420704 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1781767448; bh=AGYosLUTA1dALnl3eAdgVL5Vkoubpbpyn+BFcG6Iaq0=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=Edzvnx1So5ld8amTmM0mGsaC68C554ndCK71M3cuRq4UlNED6o7tba0PCHw3p05sh ZrGsf6PhPE0viPmVACQc2XBxT2ZwpocLKf+0TfmSHFw1emauKX3UjCGx4+XuNhmvnM YjzXykE+BkQSlYd6gQV0RnsI8WrVrJUQJ2+kQMUraJusvHpLWC8Cw6is+4uEIH3DYz aiUyy6aUwoepDtWPrkPq2L68yyxm8nVAGZHhCrBpskqDO2KBpuyFGECNAx8LAICaos I4pnFbL2JAlT/N/rN13Yf4XCwggdt6YUzynnIevAvwZYckCEJqtWNwuZYLuHEO+OBZ 2qh6W5AQdkc2g== Received: from secunet.com (10.182.7.193) by EXCH-01.secunet.de (10.32.0.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.37; Thu, 18 Jun 2026 09:24:07 +0200 Received: (nullmailer pid 3962650 invoked by uid 1000); Thu, 18 Jun 2026 07:24:07 -0000 Date: Thu, 18 Jun 2026 09:24:07 +0200 From: Steffen Klassert To: Eric Dumazet CC: "David S . Miller" , Jakub Kicinski , Paolo Abeni , Simon Horman , , , , Herbert Xu Subject: Re: [PATCH net] xfrm: annotate data-races around xfrm_policy_count[] and xfrm_policy_default[] Message-ID: References: <20260612055634.3560352-1-edumazet@google.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20260612055634.3560352-1-edumazet@google.com> X-ClientProxiedBy: EXCH-01.secunet.de (10.32.0.171) To EXCH-01.secunet.de (10.32.0.171) On Fri, Jun 12, 2026 at 05:56:34AM +0000, Eric Dumazet wrote: > KCSAN reported a data race involving net->xfrm.policy_count access. > > Add missing READ_ONCE()/WRITE_ONCE() annotations on > xfrm_policy_count and xfrm_policy_default. > > Fixes: 2518c7c2b3d7 ("[XFRM]: Hash policies when non-prefixed.") > Reported-by: syzbot+d85ba1c732720b9a4097@syzkaller.appspotmail.com > Closes: https://lore.kernel.org/netdev/6a2b9e96.99669fcc.12a77b.0006.GAE@google.com/T/#u > Signed-off-by: Eric Dumazet Applied to the ipsec tree, thanks a lot Eric!