VOOZH about

URL: https://www.phoronix.com/news/Linux-6.17-Hash-Pointers

⇱ Linux 6.17 Introduces hash_pointers= Boot Parameter - Phoronix


👁 Phoronix

Linux 6.17 Introduces hash_pointers= Boot Parameter

Written by Michael Larabel in Linux Kernel on 5 August 2025 at 06:28 AM EDT. Add A Comment
Linus Torvalds yesterday merged a patch from SUSE's Petr Mladek introducing a new boot parameter option for the kernel to provide greater control over the behavior of hashing pointer values.

The default behavior of the Linux kernel continues to be that when a pointer is printed to the console that the pointer value is hashed. This pointer hashing is done so that unprivileged users won't know of the actual kernel addresses should they be trying to exploit the system. That though can obviously make system debugging more of a challenge with the hashed pointers.

With Linux 6.17 there is now the "hash_pointer=" parameter to better control this feature and an alternative to the existing basic "no_hash_pointers" knob.

The default "auto" behavior for hash_pointers= is that pointer hashing is enabled unless SLAB debugging (slab_debug) is enabled since the hashed pointers make SLAB debugging much more challenging to impractical.

The hash_pointers= boot parameter can also be set to "always" so that it is always engaged even if SLAB debugging is active. Or "hash_pointers=never" to match the existing "no_hash_pointers" option of never hashing pointer values.

👁 hash_pointers= documentation


System administrators wanting to know more can see this patch merged for Linux 6.17.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.