🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15366

Re: [PATCH net] net: netns: fix INT_MAX nsid cleanup

#15366
From: patchwork-bot+netdevbpf
Date: Thu, 12 Nov 2026 18:50
25 lines
8551 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Wed, 11 Nov 2026 11:35:25 +0800 you wrote:
> A syzkaller reproducer assigning INT_MAX as a peer nsid triggers an
> idr_get_next() warning during netns cleanup. With panic_on_warn, this
> panics the kernel.
> 
> alloc_netid() also overflows reqid + 1 for this nsid. Use
> idr_alloc_u32() for requested IDs and idr_get_next_ul() for cleanup so
> the cursor can advance past INT_MAX.
> 
> [...]

Here is the summary with links:
  - [net] net: netns: fix INT_MAX nsid cleanup
    https://git.kernel.org/netdev/net/c/dd6f1e7582f0

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179450941027.590019.10618104051930565627.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362132-linux-kernel-netdev=dewy.ru
References: <20261111033525.65828-1-zhaogongyi@bytedance.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362132-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: netns: fix INT_MAX nsid cleanup
Date: Thu, 12 Nov 2026 18:50:10 +0000
Organization: Usenet Network
Message-ID: <179450941027.590019.10618104051930565627.git-patchwork-notify@kernel.org>
References: <20261111033525.65828-1-zhaogongyi@bytedance.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1162156"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:xKJRK7TCTf+TMYxZF/eZ1DrEc5U= sha256:pfLgje7U7bbBgY4Bmqf9oh+9fP7FX4Vyyx3smfHil9g=
	sha1:OiVIHgTygG2ifPnj7k/ZZpQJYkU= sha256:93syC4F6P02NYk99g1AjLnp4GqmL3pUOe3G0cYCykos=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 18835114365; Thu, 12 Nov 2026 22:44:11 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id UT43oIMjGNYC;
	Thu, 12 Nov 2026 22:44:07 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-362132-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 8E8BC114364; Thu, 12 Nov 2026 22:43:58 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id D43486A1EE7; Thu, 12 Nov 2026 18:50:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794509412;
	b=j4J9Yuy1beKUQ0G3dyXjSVAzLAtMb6Q3X9dMQ0xcH71LGSAaMtmow8qDnXpOwms3qaSq
	 r5E5HxMcdNdmoq95YRV4LWgIs5NbANGNzmTlaj0f2sX4xlxxHv0RfVwoZyYVKF/TNzc6e
	 qVMoNR4eau7BmeNsE8g2q7feGzAr8zTpx/+v4Du3VopxRAZBBTzVgFxhwGwu7PRTvZskQ
	 y8UQ4Us54k7uweDohgcBBX9L7K46v+7f4v+S2xD5xNi45jr/ADETQZVeGL2eA+3tsN9B6
	 7wx4C7DK6iYYwQ0AP7fIihlp8qK+XKH7qSn4Dg3RnvulAqt0OXW3Fn/9erHhulBPneg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794509412;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=h3XMbSIx3RGmcIByP1HsmQLLJ3ABgYmEHYdROaunBeI=;
	b=y5Q+5di1rtN60qtD29PMFMYLIDiIRZi2zI9WtUNVd1PTOOdSTj4vvTj+mHKRa+K5IR2n
	 5fnl8E3bmcF7T6+6VhggcTzJ3q+KBh8+VA73fGW3Y3mD4hAyiv7Xaa0j70AcojXrWaXff
	 o2ssiJ2NImW3b1t8d4AbJyBWx5HYbRiIvmPGzFrBUcnwSMJgf/6AjF8nlgNFakzAxnhXh
	 filgMrS1Xkk9l+GR95ehMhhcNoqokOznrUHeoSk0ZvuhRakdg6UPKMFi4CAxQKvAUDdD4
	 cYv2tWT3d5+GixSy50LTBSV20oL8gZ3ZJIPniMIAnBGKYGZ20t361vNtJvSWzapQx0Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Oi7ji3Qn;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id CA7DF606A89C;
	Thu, 12 Nov 2026 18:50:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Oi7ji3Qn
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794509412;
	b=X75FJuRnzj2y+fKd83Uwcp92Sd8GGJ2sap14xqtzPVJfD6rW3BXArC+HZlSNUYjxiv7C
	 8njzOUKa6UiQWvbVyl5FUtz7ckaZ3L//BnoyOEtTXaCLvbWOTdoc2Zs91QR3pwcowQCV8
	 8Mztvw6FBKG2bg/4I5GkGY0Y2Ju+cqT1247en8z2UsLJvYB86dIXzvJBED2RSQp4Gs+bT
	 9Cfr/y0cdocMJkLvaic3u8K6XHr1yosRedbgaX7x4Kw01Bf6Qfg5Gt6jCS45LGeziaFEW
	 BUk1jqe9zvifaqLqJ5V96Aa9/au95T2VYdQu4xC2lbe8j3wxl1i0i3/vtGuKGhy7tvg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794509412;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=h3XMbSIx3RGmcIByP1HsmQLLJ3ABgYmEHYdROaunBeI=;
	b=guCpmLj6Sa0Vn/VJwg539R/enVz7Z+b68WWw0r5xsTJQEkui0RQe6ogOFBzAqQNWHDC5
	 v0GAq2sZb21hvli2pw+J2IsS7IVFVb5xzl8zkj3b/to3oEzYCfUHevYSMqGaC9F9i/qmM
	 rXR9V12ODmW98vJOeP/e+n7WuYOq7DlAo96Dm1/iMADZA4QhSjEyF4X0P+awpGFgjwj8/
	 IuTcrJjDmbSknH2mmaEpKGevv76+YzFSDl8MAys3F9Shwf6pyh217zRzCNIyLD76GUJ4u
	 K6bv2V2LrbbbH3dps1Jfsl055KZSxjfVbkv5uRZHjsZ1mb9vG2naz/+rhWyWQ/nojQA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Oi7ji3Qn;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9F41606A893;
	Thu, 12 Nov 2026 18:50:11 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C05F01F000C6;
	Thu, 12 Nov 2026 18:50:11 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794509411;
	bh=h3XMbSIx3RGmcIByP1HsmQLLJ3ABgYmEHYdROaunBeI=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=Oi7ji3Qn3XaqdT1iigQpPJmvDv+g+M/AL9qC2Fp/u4Agp9s5V7cF0qkRl3CDcWls7
	 HSTFvBDDiiVncNg8nCq2xzwibt1VkHJA3B8i/OcExyqwsN1jlOPdxlrLRGD9NLxsa9
	 OuJZ8BYV4kL2RJd+v5cJBt9Ktn5KuNRqaQHJ5YeUq0Ol60nFCk8d4tQHSAlhDrbAwf
	 CBLGdzg9bPYHwE/c6wSovEXL2tkGx3b0JQNvcKeyM7BDHUQrNJajEyWUA0z5jmMh9c
	 bs27bx1QMruchZA7q8DH3ggzPsIfvGAzcK+j49BJeZNLM2G8wvOsCGiyrPOHgoR3I8
	 iiuIyBCHZnOcQ==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id B4425391AF9C;
	Thu, 12 Nov 2026 18:50:11 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261111033525.65828-1-zhaogongyi@bytedance.com>
X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, kuniyu@google.com,
 realwujing@gmail.com, stable@vger.kernel.org