]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kprobes: Record frame pointer with kretprobe instance
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 21 Oct 2021 00:54:51 +0000 (09:54 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 22 Oct 2021 16:16:53 +0000 (12:16 -0400)
commite201ebd8aba8d1c248c383896d93504a49eebf24
tree3ca7a5c5d12fcd0c1d29add1a17f5665514b6f12
parentf4cd8f0442e2461c33525e6fca64c2c56f962fcc
arm64: kprobes: Record frame pointer with kretprobe instance

Record the frame pointer instead of stack address with kretprobe
instance as the identifier on the instance list.
Since arm64 always enable CONFIG_FRAME_POINTER, we can use the
actual frame pointer (x29).

This will allow the stacktrace code to find the original return
address from the FP alone.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
arch/arm64/kernel/probes/kprobes.c