Re: [PATCH v2] docs: make kptr_restrict and hash_pointers reference each other

From: Jonathan Corbet

Date: Fri Jan 16 2026 - 13:32:37 EST


Marc Herbert <marc.herbert@xxxxxxxxxxxxxxx> writes:

> vsprintf.c uses a mix of the `kernel.kptr_restrict` sysctl and the
> `hash_pointers` boot param to control pointer hashing. But that wasn't
> possible to tell without looking at the source code.
>
> They have a different focus and purpose. To avoid wasting the time of
> users trying to use one instead of the other, simply have them reference
> each other in the Documentation.
>
> Signed-off-by: Marc Herbert <marc.herbert@xxxxxxxxxxxxxxx>
> ---
> Please just go ahead with any minor correction(s); I mean do not ask
> for my opinion.
>
> Changes in v2:
> - Rebased on today's docs-next/master to fix textual, unrelated conflict
> - Stop using backquotes in kernel-parameters.txt for consistency
> - Link to v1: https://patch.msgid.link/20251205-doc-hash-ptr-v1-1-573966cfa404@xxxxxxxxxxxxxxx
> ---
> Documentation/admin-guide/kernel-parameters.txt | 3 +++
> Documentation/admin-guide/sysctl/kernel.rst | 3 +++
> 2 files changed, 6 insertions(+)

Applied, thanks.

jon