Re: [PATCH net v3] ipv6: fix ioam6_id_wide sysctl on 32-bit architectures

From: patchwork-bot+netdevbpf

Date: Sun Nov 29 2026 - 10:10:21 EST


Hello:

This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@xxxxxxxxxx>:

On Mon, 23 Nov 2026 08:00:36 +0530 you wrote:
> net.ipv6.ioam6_id_wide stores a u64 (netns_sysctl_ipv6.ioam6_id_wide),
> but its table entry uses proc_doulongvec_minmax() with .maxlen =
> sizeof(u64) and .extra2 pointing at a u64. On 32-bit, unsigned long is
> 4 bytes, so the handler treats the field as a vector of two 32-bit
> values and reads the u64 max through an unsigned long pointer:
>
> - reading prints two numbers ("4294967295 16777215" by default on
> little-endian);
> - writing one value only replaces one half of the u64: on
> little-endian "echo 5 >" leaves 0x00ffffff00000005; on big-endian it
> sets the upper half, and the range check uses the upper word of
> ioam6_id_wide_max (0x00ffffff).
>
> [...]

Here is the summary with links:
- [net,v3] ipv6: fix ioam6_id_wide sysctl on 32-bit architectures
https://git.kernel.org/netdev/net/c/a8710eac6431

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html