x86/entry/fred: Encode frame pointer on entry

Add missing ENCODE_FRAME_POINTER macro invocation into FRED_ENTER macro,
to prevent the unwinder from encountering a NULL stack frame pointer
when CONFIG_UNWINDER_FRAME_POINTER is enabled

Fixes: 14619d912b ("x86/fred: FRED entry/exit and dispatch code")
Signed-off-by: David Stevens <stevensd@google.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Link: https://patch.msgid.link/20260424191456.2679717-12-stevensd@google.com
This commit is contained in:
David Stevens 2026-04-24 12:14:54 -07:00 committed by Dave Hansen
parent a13c140cc2
commit dab01c597f

View File

@ -7,6 +7,7 @@
#include <linux/kvm_types.h>
#include <asm/asm.h>
#include <asm/frame.h>
#include <asm/fred.h>
#include <asm/segment.h>
@ -19,6 +20,7 @@
UNWIND_HINT_END_OF_STACK
ANNOTATE_NOENDBR
PUSH_AND_CLEAR_REGS
ENCODE_FRAME_POINTER
movq %rsp, %rdi /* %rdi -> pt_regs */
.endm