Re: [RFC PATCH v2 04/30] x86: unwind_user: Support Minimal DWARF CFI user unwinding
From: bot+bpf-ci
Date: Wed Nov 25 2026 - 01:48:10 EST
> x86: unwind_user: Support Minimal DWARF CFI user unwinding
TL;DR: Nit only: unrelated comment additions in this x86 CFI patch aren't in
the changelog; suggests moving them to a separate documentation patch.
> diff --git a/arch/x86/include/asm/unwind_user.h b/arch/x86/include/asm/unwind_user.h
> --- a/arch/x86/include/asm/unwind_user.h
> +++ b/arch/x86/include/asm/unwind_user.h
[ ... ]
> +/**
> + * unwind_user_word_size() - Return the user-space word size in bytes on x86
> + * @regs: User-mode register state.
> + *
> + * Return: 8 for 64-bit user mode, 4 for 32-bit IA-32/compat mode, or 0 for
> + * VM86 mode stacks which cannot be unwound.
> + */
> static inline int unwind_user_word_size(struct pt_regs *regs)
[ ... ]
> +/* Standard x86 frame record: {saved_bp, ret_addr} at [bp, bp + 2 * ws). */
> #define ARCH_INIT_USER_FP_FRAME(ws) \
[ ... ]
> +/* At function entry before push %rbp: return address is at [sp, sp + ws). */
> #define ARCH_INIT_USER_FP_ENTRY_FRAME(ws) \
[ ... ]
> +/**
> + * unwind_user_at_function_start() - Check if @regs is at a function entry point
> + * @regs: User-mode register state.
> + *
> + * Return: true if stopped on an entry uprobe before the frame prologue ran.
> + */
> static inline bool unwind_user_at_function_start(struct pt_regs *regs)
This isn't a bug, but the new comments on unwind_user_word_size(), the
ARCH_INIT_USER_FP_* macros and unwind_user_at_function_start() don't look
related to adding CFI support, and the changelog doesn't mention them.
Would they fit better in a separate documentation patch, so this one only
carries the x86 CFI register mapping and the Kconfig select?
---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
CI run summary: https://github.com/kernel-patches/bpf/actions/runs/45561209846