kprobes: Add generic kretprobe trampoline handler
authorMasami Hiramatsu <mhiramat@kernel.org>
Sat, 29 Aug 2020 13:00:01 +0000 (22:00 +0900)
committerIngo Molnar <mingo@kernel.org>
Tue, 8 Sep 2020 09:52:31 +0000 (11:52 +0200)
commit66ada2ccae4ed4dd07ba91df3b5fdb4c11335bd1
treef6dfc4610d9979030978d156c650c8b9d58caaee
parentf4d51dffc6c01a9e94650d95ce0104964f8ae822
kprobes: Add generic kretprobe trampoline handler

Add a generic kretprobe trampoline handler for unifying
the all cloned /arch/* kretprobe trampoline handlers.

The generic kretprobe trampoline handler is based on the
x86 implementation, because it is the latest implementation.
It has frame pointer checking, kprobe_busy_begin/end and
return address fixup for user handlers.

[ mingo: Minor edits. ]

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/159870600138.1229682.3424065380448088833.stgit@devnote2
include/linux/kprobes.h
kernel/kprobes.c