🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21748

Re: [PATCH net-next v2] net: avoid hashing the namespace pointer for device names

#21748
From: patchwork-bot+netdevbpf
Date: Tue, 24 Nov 2026 12:20
26 lines
8827 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Tue, 17 Nov 2026 22:26:52 -0800 you wrote:
> dev_name_hash() salts device-name hashes with the network namespace
> pointer. An unprivileged user can time SIOCGIFINDEX lookups for chosen
> missing names and identify collisions with a resident name such as "lo".
> Ranking this collision pattern across possible KASLR slides recovers the
> init_net pointer and thus the kernel text base.
> 
> Use an unsalted name hash. Each network namespace has a separate hash
> table, so this does not change lookup or namespace-isolation semantics.
> 
> [...]

Here is the summary with links:
  - [net-next,v2] net: avoid hashing the namespace pointer for device names
    https://git.kernel.org/netdev/net-next/c/a4c450594f5d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179552280678.3493825.12303833584298594015.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370314-linux-kernel-netdev=dewy.ru
References: <c9b3c1a0e3410ffa70db448e2299ed420528b5ff.1794981913.git.zcliangcn@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370314-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2] net: avoid hashing the namespace pointer for
 device names
Date: Tue, 24 Nov 2026 12:20:06 +0000
Organization: Usenet Network
Message-ID: <179552280678.3493825.12303833584298594015.git-patchwork-notify@kernel.org>
References: <c9b3c1a0e3410ffa70db448e2299ed420528b5ff.1794981913.git.zcliangcn@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="4131602"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:i/p5t5M+B46KxuiwoIfhFqdsOqQ= sha256:Fpo4lXahGb4WksMayNC+XNi22mZoijPHoHMIgk1tREc=
	sha1:Hkz/PeuGzqW/eyunbuAaS7LOMYA= sha256:nVVeDO1vXIpkNe3EXrDwP8Y/YBCTxKD57rAs86IHiqo=
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 57B69125E09; Tue, 24 Nov 2026 15:20:32 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 nixbuCeVWWHi;
	Tue, 24 Nov 2026 15:20:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370314-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 56458125E07; Tue, 24 Nov 2026 15:20:13 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 2792C38DED; Tue, 24 Nov 2026 12:20:10 +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=1795522809;
	b=jQAO7OWXpin2fwQWRnFqcrp9SJYTEjLjfCivciKyKAN0Excrv63cEl6aQYnDuhKXaCQ2
	 l6z9K0fZczqz052baNZU0jOlCRb+G/0oBPwRrBk3PSg+kkt8BmM0YotIfrfPWPUHgab3F
	 Rdlkry2vbq7Azolu4TP0//9mBX3vJrz9GML+SFl52uUWml3mCwMyWeUWOrUUAkyStMibd
	 7JZRr/t60FOANKY1+IJwjIJsVwa/OxGTmDKzyI0lbZLGt/RRTm3gOlU1PNUtAuukXV4b/
	 3quM+2iNyHgRhOhqNw3iCPL8t20R+thWjgMNIP9AoZWUAToATq9R/s/IxaC53ISrrFw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795522809;
	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=gzN1qDG3DahP5B3noBfp8hpGNH6z5PvQy6fzoS5h2jg=;
	b=kakTojSyk+WP1gltppGUjpUUZ1qIoJwcHFxWNR3199erQbN8GMVkEo5moHM6w28Ld/+j
	 wVi7BWNhV0EcS5PyMsL+gLn5oLlqz19KrsMQTN/GyupbGzYbvMJ4cBzIHMFJN8UvnoV7j
	 tJ/azskZ2D5oPRoPMbECmR/L/QgNYllEWW3KOwtuhuhTZb4VBt2ExoCv9vS0D1bgwlMCO
	 5K0ycTyHSMNcmdq+u9KrbFb9uApjhCidzx5RMvzD+NpojV+YKNSLMwcd/EIvsTt81y/mO
	 EgiWr0EN9FvtjmvTZWWMjMvezU0sBIoaY6jzP76J0WLDKt0vO8F975beK99x2VVVnTQ==
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=PTnZrQmU;
	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 C2FE5606A330;
	Tue, 24 Nov 2026 12:20:09 +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=PTnZrQmU
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=1795522809;
	b=ITnbuYNmjOKW156aaFklmHOrJy7aJ675tZItEPMQe1xuTMYgrjElCATYSzxX2i7GmfXt
	 UF+Dg9aAa3Rrx82Ru94bNaRGZqLapeC7aER/41E9bPTBWYTGNiZkL8Nvw1igXcmkJ7EP3
	 iTQrBqfk4MUqj/QyO+ilqWEEuPbn6pVzLy3SrecCMlBhvQ5IDjovP1xlDoiH19uvl7Sj3
	 uulrYf3iR3BPXIvuwgsZnf0HTTBEa6mjbtjlURAXZ+czWtl6A+W/3uCvwZQ1ts0DVRLly
	 /ZTgeFpj3l10BPxhuCjikNvj74zUK5Sj4uRzDu3Teu05UaU74QRuvDjs/RFPKTL6Hwg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795522809;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=gzN1qDG3DahP5B3noBfp8hpGNH6z5PvQy6fzoS5h2jg=;
	b=xi48ZUVlIWCus/8Q9ZGNCrHrdKtb5SjHnN85jnYh75ou4fVRRphxS2nTQGKVpbfp/LQV
	 3ZNa/dno/PY0Wjy3k8sv26S+phCjQWlFPXRilpFPhXJ5NyX/rCLTUIkMJlZoF875jMxsU
	 CpS9aQgW/PFWRd3tww4jmfYIa8s4ghoxYndyh/xG2ClLMxWq1RU/4OtKO+nS059D8prhO
	 TlQCkqidcwl7t3RbZvpRHWC1Larthaew1Vs/in+uGgN7Hwd7LoIb/RXF4lZp/xkWrPHrS
	 EbaBxJH6m2qRadt+FoyAxdvQOK6JfSg1Y96hkVmIBy9z0M7MrKym7ymEKFuPyNBYMnQ==
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=PTnZrQmU;
	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 DF892606A31E;
	Tue, 24 Nov 2026 12:20:08 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0613D1F000C0;
	Tue, 24 Nov 2026 12:20:08 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795522808;
	bh=gzN1qDG3DahP5B3noBfp8hpGNH6z5PvQy6fzoS5h2jg=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=PTnZrQmUsgxV4O6uMFDvOQ2bYoex7sA4bGjaYcBCOqAMeqGc12l9KPJ6o5B5sw5pN
	 dC0BizJUPr5/FYMUKzfmGAEuxMx+cEZ/AN/328+oszZIIDHfTYSO/knSBm7x8EuOuP
	 +cLc47154jJ3/13X6CLvztlC2+kf5R+R0RZZ5u3JcJ/n1RZCnc68K05G4nhPwYUkcp
	 Rk4y7rs18cBp5lkMsLEPOGz4/rbnKee1pV92GTxale4y21a3nRieQGHeccf53lv9Si
	 ieSUMWA44Jf2hzi7S5QkBv+vBDQ4X9hei6whxL4WTvywMCQAmhRjIB7fxZxVX5WKLF
	 NANUDU/bK1JKQ==
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 F17E8393107C;
	Tue, 24 Nov 2026 12:20:07 +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:  <c9b3c1a0e3410ffa70db448e2299ed420528b5ff.1794981913.git.zcliangcn@gmail.com>
X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, horms@kernel.org, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org