android_kernel_sony_sdm845/kernel/debug/kdb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christophe Leroy 99e36ac392 UPSTREAM: kdb: use correct pointer when 'btc' calls 'btt'
On a powerpc 8xx, 'btc' fails as follows:

Entering kdb (current=0x(ptrval), pid 282) due to Keyboard Entry
kdb> btc
btc: cpu status: Currently on cpu 0
Available cpus: 0
kdb_getarea: Bad address 0x0

when booting the kernel with 'debug_boot_weak_hash', it fails as well

Entering kdb (current=0xba99ad80, pid 284) due to Keyboard Entry
kdb> btc
btc: cpu status: Currently on cpu 0
Available cpus: 0
kdb_getarea: Bad address 0xba99ad80

On other platforms, Oopses have been observed too, see
https://github.com/linuxppc/linux/issues/139

This is due to btc calling 'btt' with %p pointer as an argument.

This patch replaces %p by %px to get the real pointer value as
expected by 'btt'

Fixes: ad67b74d2469 ("printk: hash addresses printed with %p")
Cc: <stable@vger.kernel.org>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
(cherry picked from commit dded2e159208a9edc21dd5c5f583afa28d378d39)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I37f1ec131227677305a096323ac11c9dcb11faf8
2022-02-21 16:30:05 +01:00
..
.gitignore
kdb_bp.c mm/init: Add 'rodata=off' boot cmdline parameter to disable read-only kernel mappings 2016-02-22 08:51:37 +01:00
kdb_bt.c UPSTREAM: kdb: use correct pointer when 'btc' calls 'btt' 2022-02-21 16:30:05 +01:00
kdb_cmds kdb: cleanup unused variables missed in the original kdb merge 2011-08-01 13:23:58 -05:00
kdb_debugger.c kgdb: timeout if secondary CPUs ignore the roundup 2014-11-11 09:31:53 -06:00
kdb_io.c This is the 4.9.241 stable release 2020-10-29 10:17:40 +01:00
kdb_keyboard.c KDB: Fix usability issues relating to the 'enter' key. 2012-03-22 15:07:15 -05:00
kdb_main.c UPSTREAM: kdb: print real address of pointers instead of hashed addresses 2022-02-21 16:30:05 +01:00
kdb_private.h kdb: Make memory allocations more robust 2021-03-03 17:44:31 +01:00
kdb_support.c UPSTREAM: kdb: print real address of pointers instead of hashed addresses 2022-02-21 16:30:05 +01:00
Makefile