Re: [PATCH v4 1/2] vsprintf: Don't leak pointers for %ps without KALLSYMS enabled
From: Petr Mladek
Date: Mon Oct 19 2026 - 13:38:03 EST
On Mon 2026-10-19 12:21:50, Sebastian Andrzej Siewior wrote:
> The "%ps" format modifier prints the name of the symbol which is more
> valuable in terms of debugging and does not leak the actual pointer.
>
> Without KALLSYMS it will leak the pointer which is not intended. The
> default policy for pointers is to print a hashed value and not to leak
> the actual pointer.
>
> Print a hashed pointer for any symbol resolution witout KALLSYMS
> enabled like it is the case for %p.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
Looks good to me:
Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
Best Regards,
Petr