lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <176840741930.510.13867270177839334217.tip-bot2@tip-bot2>
Date: Wed, 14 Jan 2026 16:16:59 -0000
From: "tip-bot2 for Ryosuke Yasuoka" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Ryosuke Yasuoka <ryasuoka@...hat.com>,
 "Borislav Petkov (AMD)" <bp@...en8.de>, x86@...nel.org,
 linux-kernel@...r.kernel.org
Subject: [tip: x86/misc] x86/traps: Print unhashed pointers on stack overflow

The following commit has been merged into the x86/misc branch of tip:

Commit-ID:     6b32c93560cb194e10279bd3be3c1d0fa30df3e7
Gitweb:        https://git.kernel.org/tip/6b32c93560cb194e10279bd3be3c1d0fa30df3e7
Author:        Ryosuke Yasuoka <ryasuoka@...hat.com>
AuthorDate:    Wed, 24 Dec 2025 16:07:32 +09:00
Committer:     Borislav Petkov (AMD) <bp@...en8.de>
CommitterDate: Wed, 14 Jan 2026 16:31:53 +01:00

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@...hat.com>
Signed-off-by: Borislav Petkov (AMD) <bp@...en8.de>
Link: https://patch.msgid.link/20251224070735.454816-1-ryasuoka@redhat.com
---
 arch/x86/kernel/traps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c
index bcf1ded..5a6a772 100644
--- a/arch/x86/kernel/traps.c
+++ b/arch/x86/kernel/traps.c
@@ -549,7 +549,7 @@ __visible void __noreturn handle_stack_overflow(struct pt_regs *regs,
 {
 	const char *name = stack_type_name(info->type);
 
-	printk(KERN_EMERG "BUG: %s stack guard page was hit at %p (stack is %p..%p)\n",
+	printk(KERN_EMERG "BUG: %s stack guard page was hit at %px (stack is %px..%px)\n",
 	       name, (void *)fault_address, info->begin, info->end);
 
 	die("stack guard page", regs, 0);

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ