Re: [PATCH 1/2] vsprintf: Don't leak pointers for %ps without KALLSYMS enabled
From: Andy Shevchenko
Date: Sat Aug 15 2026 - 04:58:20 EST
On Fri, Aug 14, 2026 at 04:48:53PM +0200, 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 "(unknown)" for any symbol resolution witout KALLSYMS enabled.
Hmm... I would expect some test cases to be added/modified.
--
With Best Regards,
Andy Shevchenko