From c0e212ac98a71f1dd0c44060812b13b6471a2886 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Wed, 18 Mar 2026 20:54:49 +0000 Subject: [PATCH] x86_64: panic: fix incorrect kernel stack traversal --- arch/x86_64/panic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86_64/panic.c b/arch/x86_64/panic.c index 7840459..a3f24c3 100644 --- a/arch/x86_64/panic.c +++ b/arch/x86_64/panic.c @@ -175,7 +175,7 @@ static bool read_stack_frame( struct stack_frame *out) { if (bp >= VM_PAGEMAP_BASE) { - *out = *(struct stack_frame *)out; + *out = *(struct stack_frame *)bp; return true; }