[PATCH 01/14] alpha: fix saved registers in page-fault oops dumps
From: Magnus Lindholm
Date: Tue Nov 03 2026 - 16:46:56 EST
The aligned exception frame moved r9-r15 back by one word. Adjust the
pointer passed to die_if_kernel() so s0-s6 show the correct registers.
Fixes: 3b35a171060f ("alpha: align stack for page fault and user unaligned trap handlers")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Magnus Lindholm <linmag7@xxxxxxxxx>
---
arch/alpha/mm/fault.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/alpha/mm/fault.c b/arch/alpha/mm/fault.c
index 3dfeb854f196387d8c8f709d0ce355e5145035fb..f09f69894cfd65d814ab1cf498c946043fb9e8a3 100644
--- a/arch/alpha/mm/fault.c
+++ b/arch/alpha/mm/fault.c
@@ -244,7 +244,7 @@ retry:
terminate things with extreme prejudice. */
printk(KERN_ALERT "Unable to handle kernel paging request at "
"virtual address %016lx\n", address);
- die_if_kernel("Oops", regs, cause, (unsigned long*)regs - 16);
+ die_if_kernel("Oops", regs, cause, (unsigned long *)regs - 17);
make_task_dead(SIGKILL);
/* We ran out of memory, or some other thing happened to us that
--
2.43.0