Jisheng Zhang e31be8d343
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")
Cc: stable@vger.kernel.org
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-04-15 21:32:34 -07:00
..
2020-03-31 11:28:30 -07:00
2020-03-31 11:28:30 -07:00
2020-10-02 14:31:28 -07:00
2020-10-02 14:30:57 -07:00
2020-06-09 19:11:24 -07:00
2021-01-14 15:09:08 -08:00
2021-01-07 19:00:50 -08:00