Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

LoongArch: Use %px to print unmodified unwinding address

Currently, use %p to prevent leaking information about the kernel memory
layout when printing the PC address, but the kernel log messages are not
useful to debug problem if bt_address() returns 0. Given that the type of
"pc" variable is unsigned long, it should use %px to print the unmodified
unwinding address.

Cc: stable@vger.kernel.org
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>

authored by

Tiezhu Yang and committed by
Huacai Chen
77403a06 2172d6eb

+1 -1
+1 -1
arch/loongarch/kernel/unwind_orc.c
··· 494 494 495 495 state->pc = bt_address(pc); 496 496 if (!state->pc) { 497 - pr_err("cannot find unwind pc at %p\n", (void *)pc); 497 + pr_err("cannot find unwind pc at %px\n", (void *)pc); 498 498 goto err; 499 499 } 500 500