Re: [PATCH 1/2] vsprintf: Don't leak pointers for %ps without KALLSYMS enabled

From: Sebastian Andrzej Siewior

Date: Thu Aug 20 2026 - 10:25:51 EST


On 2026-08-15 11:58:03 [+0300], Andy Shevchenko wrote:
> 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.

No bot complained so far, so maybe not ;)

Sebastian