FAILED: Patch "LoongArch: Use %px to print unmodified unwinding address" failed to apply to 6.12-stable tree
Subsystems (2)
Sasha Levin
maintainerThe patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 77403a06d845db1caf9a6b0867b43e9dd8de8e4a Mon Sep 17 00:00:00 2001
From: Tiezhu Yang <[email protected]>
Date: Tue, 10 Feb 2026 19:31:13 +0800
Subject: [PATCH] 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.
--- arch/loongarch/kernel/unwind_orc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/loongarch/kernel/unwind_orc.c +1 -1
@@ -494,7 +494,7 @@ bool unwind_next_frame(struct unwind_state *state) state->pc =bt_address (pc);if (!state->pc) { -pr_err ("cannot find unwind pc at %p\n" , (void *)pc); +pr_err ("cannot find unwind pc at %px\n" , (void *)pc); goto err; }
Signature · 1 line
2.51.0
Huacai Chen
maintainerHi, Sasha,
Quoted 5 lines · Sasha Levin
The patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
I'm very confused because it can be applied and already here:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/queue-6.12
Huacai
Quoted 44 lines
Thanks,
Sasha------------------ original commit in Linus's tree ------------------
From
77403a06d845db1caf9a6b0867b43e9dd8de8e4aMon Sep 17 00:00:00 2001
From: Tiezhu Yang <[email protected]>
Date: Tue, 10 Feb 2026 19:31:13 +0800
Subject: [PATCH] LoongArch: Use %px to print unmodified unwinding addressCurrently, 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.Signed-off-by Tiezhu Yang <[email protected]>Signed-off-by Huacai Chen <[email protected]>--- arch/loongarch/kernel/unwind_orc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/loongarch/kernel/unwind_orc.c +1
-2@@ -494,7 +494,7 @@ bool unwind_next_frame(struct unwind_state *state) state->pc =bt_address (pc);if (!state->pc) { -pr_err ("cannot find unwind pc at %p\n" , (void *)pc); +pr_err ("cannot find unwind pc at %px\n" , (void *)pc); goto err; } --2.51.0