]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xmon: Don't print hashed pointers in xmon
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 6 Dec 2017 12:23:28 +0000 (23:23 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 6 Dec 2017 13:27:01 +0000 (00:27 +1100)
commit5c342433c3b43be84524e6fbcb3f94ccd496d49a
treebe9baacdc1e58ae653535916659cd944a8d39186
parent2e14c8f58755da8bdfa905c4a1dc3de9accb21cf
powerpc/xmon: Don't print hashed pointers in xmon

Since commit c50104c2c22f ("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@ellerman.id.au>
arch/powerpc/xmon/xmon.c