]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
unwind_user/x86: Teach FP unwind about start of function
authorPeter Zijlstra <peterz@infradead.org>
Fri, 24 Oct 2025 10:31:10 +0000 (12:31 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 29 Oct 2025 09:29:58 +0000 (10:29 +0100)
commitae25884ad749e7f6e0c3565513bdc8aa2554a425
tree373450384ff724ce72856374d5464dd3dc7abe22
parent49cf34c0815f93fb2ea3ab5cfbac1124bd9b45d0
unwind_user/x86: Teach FP unwind about start of function

When userspace is interrupted at the start of a function, before we
get a chance to complete the frame, unwind will miss one caller.

X86 has a uprobe specific fixup for this, add bits to the generic
unwinder to support this.

Suggested-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20251024145156.GM4068168@noisy.programming.kicks-ass.net
arch/x86/events/core.c
arch/x86/include/asm/unwind_user.h
arch/x86/include/asm/uprobes.h
arch/x86/kernel/uprobes.c
include/linux/unwind_user_types.h
kernel/unwind/user.c