Skip to content

Commit 6b32c93

Browse files
YsuOSbp3tk0v
authored andcommitted
x86/traps: Print unhashed pointers on stack overflow
When a stack overflow occurs, the kernel prints hashed fault address and the stack range using %p. The actual addresses are required for debugging and hashed pointers provide no useful information in this context. Use %px to print the unhashed, raw addresses. Signed-off-by: Ryosuke Yasuoka <ryasuoka@redhat.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://patch.msgid.link/20251224070735.454816-1-ryasuoka@redhat.com
1 parent 6b45ded commit 6b32c93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kernel/traps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ __visible void __noreturn handle_stack_overflow(struct pt_regs *regs,
549549
{
550550
const char *name = stack_type_name(info->type);
551551

552-
printk(KERN_EMERG "BUG: %s stack guard page was hit at %p (stack is %p..%p)\n",
552+
printk(KERN_EMERG "BUG: %s stack guard page was hit at %px (stack is %px..%px)\n",
553553
name, (void *)fault_address, info->begin, info->end);
554554

555555
die("stack guard page", regs, 0);

0 commit comments

Comments
 (0)