linux/arch/riscv/kernel/probes
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 c536aa1c5b ("kprobes/ftrace: Add recursion protection to the
ftrace callback"), so do similar modifications as the commit does.

Fixes: 829adda597 ("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
..
decode-insn.c RISC-V: probes: Treat the instruction stream as host-endian 2021-02-18 23:18:02 -08:00
decode-insn.h
ftrace.c riscv: kprobes/ftrace: Add recursion protection to the ftrace callback 2021-04-15 21:32:34 -07:00
kprobes_trampoline.S
kprobes.c riscv: fix bugon.cocci warnings 2021-03-16 20:34:19 -07:00
Makefile riscv: Add uprobes supported 2021-01-14 15:09:08 -08:00
simulate-insn.c
simulate-insn.h
uprobes.c riscv: Add uprobes supported 2021-01-14 15:09:08 -08:00