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

From: patchwork-bot+netdevbpf

Date: Tue Nov 24 2026 - 07:20:17 EST


Hello:

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

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