]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: kprobes/ftrace: Add recursion protection to the ftrace callback
authorJisheng Zhang <jszhang@kernel.org>
Mon, 29 Mar 2021 18:14:40 +0000 (02:14 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 12 Apr 2021 00:44:54 +0000 (17:44 -0700)
commit6ee7375f4f0c3b215cbd0a45aede194507bceae0
treeddaad7d4e24b5d2ff2f63069e0be6482a5d0af14
parent30702a7703df60113a00f434e47d75942eda9860
riscv: kprobes/ftrace: Add recursion protection to the ftrace callback

Currently, the riscv's kprobes(powerred by ftrace) handler is
preemptible. Futher check indicates we miss something similar as the
commit c536aa1c5b17 ("kprobes/ftrace: Add recursion protection to the
ftrace callback"), so do similar modifications as the commit does.

Fixes: 829adda597fe ("riscv: Add KPROBES_ON_FTRACE supported")
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/probes/ftrace.c