Re: [RFC PATCH v2 11/30] x86: Add DWARF CFI annotations to entry, ftrace, frame, and rethook

From: Peter Zijlstra

Date: Wed Dec 02 2026 - 08:40:30 EST


On Tue, Nov 24, 2026 at 10:15:04PM -0800, Ian Rogers wrote:
> Prepare x86-64 hand-written and inline assembly paths for runtime
> Minimal DWARF CFI kernel unwinding when CONFIG_UNWINDER_DWARF_CFI is
> enabled:
> - Emit .eh_frame alongside .debug_frame in asm/dwarf2.h and preserve
> FRAME_BEGIN/FRAME_END frame setup for non-leaf assembly helpers in
> asm/frame.h.
> - Annotate THUNK (arch/x86/entry/calling.h), ftrace_caller /
> ftrace_regs_caller / return_to_handler (arch/x86/kernel/ftrace_64.S),
> and arch_rethook_trampoline() (arch/x86/kernel/rethook.c) with .cfi_*
> directives.
>
> Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>

Hard NAK on this.