Files
linux/arch/arm64/include/asm
Masami Hiramatsu cd9bc2c925 arm64: Recover kretprobe modified return address in stacktrace
Since the kretprobe replaces the function return address with
the kretprobe_trampoline on the stack, stack unwinder shows it
instead of the correct return address.

This checks whether the next return address is the
__kretprobe_trampoline(), and if so, try to find the correct
return address from the kretprobe instance list. For this purpose
this adds 'kr_cur' loop cursor to memorize the current kretprobe
instance.

With this fix, now arm64 can enable
CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE, and pass the
kprobe self tests.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2021-10-22 12:16:53 -04:00
..
2020-09-07 15:00:52 +01:00
2021-09-08 15:32:35 -07:00
2020-12-22 12:55:07 -08:00
2020-12-02 19:49:11 +00:00
2019-11-06 14:17:35 +00:00
2021-03-24 20:19:30 +00:00
2020-02-18 18:10:49 +00:00
2021-08-06 13:52:03 +01:00
2020-09-11 16:33:43 +01:00
2021-07-01 11:06:03 -07:00
2021-09-08 15:32:35 -07:00
2021-09-03 09:58:17 -07:00
2020-07-24 13:15:20 +01:00