linux/arch/riscv/kernel/probes
Peter Zijlstra ec6aba3d2b kprobes: Remove kprobe::fault_handler
The reason for kprobe::fault_handler(), as given by their comment:

 * We come here because instructions in the pre/post
 * handler caused the page_fault, this could happen
 * if handler tries to access user space by
 * copy_from_user(), get_user() etc. Let the
 * user-specified handler try to fix it first.

Is just plain bad. Those other handlers are ran from non-preemptible
context and had better use _nofault() functions. Also, there is no
upstream usage of this.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20210525073213.561116662@infradead.org
2021-06-01 16:00:08 +02: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 riscv: Add kprobes supported 2021-01-14 15:09:06 -08:00
ftrace.c riscv: kprobes/ftrace: Add recursion protection to the ftrace callback 2021-04-15 21:32:34 -07:00
kprobes_trampoline.S riscv: Add kprobes supported 2021-01-14 15:09:06 -08:00
kprobes.c kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
Makefile riscv: Add uprobes supported 2021-01-14 15:09:08 -08:00
simulate-insn.c riscv: Add kprobes supported 2021-01-14 15:09:06 -08:00
simulate-insn.h riscv: Add kprobes supported 2021-01-14 15:09:06 -08:00
uprobes.c riscv: Add uprobes supported 2021-01-14 15:09:08 -08:00