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>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.2501251719480.27203@angie.orcam.me.uk>
Date: Sat, 25 Jan 2025 17:30:49 +0000 (GMT)
From: "Maciej W. Rozycki" <macro@...am.me.uk>
To: Richard Henderson <richard.henderson@...aro.org>, 
    Matt Turner <mattst88@...il.com>, "Paul E. McKenney" <paulmck@...nel.org>, 
    Arnd Bergmann <arnd@...db.de>, Al Viro <viro@...iv.linux.org.uk>
cc: linux-alpha@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] Alpha: Remove SP obfuscation from register dumps

Remove the masking of SP from register dumps, i.e.:

gp = fffffc0000e97278  sp = (____ptrval____)

which brings no security but removes vital information from oopses, 
crashes, etc., which may not be easy to reobtain after a reboot with 
the `no_hash_pointers' option.

Signed-off-by: Maciej W. Rozycki <macro@...am.me.uk>
---
 arch/alpha/kernel/traps.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

linux-alpha-show-regs-sp.diff
Index: linux-melmac/arch/alpha/kernel/traps.c
===================================================================
--- linux-melmac.orig/arch/alpha/kernel/traps.c
+++ linux-melmac/arch/alpha/kernel/traps.c
@@ -92,7 +92,7 @@ dik_show_regs(struct pt_regs *regs, unsi
 	       regs->r22, regs->r23, regs->r24);
 	printk("t11= %016lx  pv = %016lx  at = %016lx\n",
 	       regs->r25, regs->r27, regs->r28);
-	printk("gp = %016lx  sp = %p\n", regs->gp, regs+1);
+	printk("gp = %016lx  sp = %px\n", regs->gp, regs+1);
 #if 0
 __halt();
 #endif

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ