powerpc/xmon: Don't print hashed pointers in xmon

Michael Ellerman patch-notifications at ellerman.id.au
Fri Dec 8 23:39:36 AEDT 2017


On Wed, 2017-12-06 at 12:23:28 UTC, Michael Ellerman wrote:
> Since commit ad67b74d2469 ("printk: hash addresses printed with %p")
> pointers printed with %p are hashed, ie. you don't see the actual
> pointer value but rather a cryptographic hash of its value.
> 
> In xmon we want to see the actual pointer values, because xmon is a
> debugger, so replace %p with %px which prints the actual pointer
> value.
> 
> We justify doing this in xmon because 1) xmon is a kernel crash
> debugger, it's only accessible via the console 2) xmon doesn't print
> to dmesg, so the pointers it prints are not able to be leaked that
> way.
> 
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>

Applied to powerpc fixes.

https://git.kernel.org/powerpc/c/d8104182087319fd753d6d8e0afcd9

cheers


More information about the Linuxppc-dev mailing list