]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/kprobes: Add UNWIND_HINT_FUNC on kretprobe_trampoline()
authorJosh Poimboeuf <jpoimboe@redhat.com>
Tue, 14 Sep 2021 14:41:32 +0000 (23:41 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 1 Oct 2021 01:24:07 +0000 (21:24 -0400)
commiteb4a3f7d78c7cf03654dfebdb2df64bd00a7af10
tree3d897ca5ef027b54f7715b6989ae194bb26afaeb
parent5b284b1933688ff18099b2cb8e83456bdd149e10
x86/kprobes: Add UNWIND_HINT_FUNC on kretprobe_trampoline()

Add UNWIND_HINT_FUNC on __kretprobe_trampoline() code so that ORC
information is generated on the __kretprobe_trampoline() correctly.
Also, this uses STACK_FRAME_NON_STANDARD_FP(), CONFIG_FRAME_POINTER-
-specific version of STACK_FRAME_NON_STANDARD().

Link: https://lkml.kernel.org/r/163163049242.489837.11970969750993364293.stgit@devnote2
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Tested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
arch/x86/include/asm/unwind_hints.h
arch/x86/kernel/kprobes/core.c