Re: [PATCH v3] lib/vsprintf: Make no_hash_pointers take effect early
From: Petr Mladek
Date: Mon Jun 22 2026 - 08:21:13 EST
On Thu 2026-06-18 19:06:40, Kaitao Cheng wrote:
> From: Kaitao Cheng <chengkaitao@xxxxxxxxxx>
>
> The no_hash_pointers boot parameter is now handled as an alias for
> hash_pointers=never. However, hash_pointers=never only records the
> selected mode during early parameter parsing, and no_hash_pointers is
> not updated until hash_pointers_finalize() runs later from SLUB init.
>
> This leaves a window during very early boot where %p output is still
> hashed even though the user explicitly requested unhashed pointers with
> no_hash_pointers or hash_pointers=never.
>
> Set no_hash_pointers as soon as the "never" mode is parsed. The later
> hash_pointers_finalize() call still keeps the final policy decision in
> one place, but explicit requests to disable pointer hashing now take
> effect for early boot users too.
>
> Signed-off-by: Kaitao Cheng <chengkaitao@xxxxxxxxxx>
LGTM, feel free to use:
Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
I am going to queue it via printk git tree for 7.3. I have already
sent printk changes for 7.2 and this does not look serious enough to
create yet another pull request. I could still add it to a pull
request for 7.2 if a more serious fix appeared.
Best Regards,
Petr