linux/arch
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
..
alpha Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
arc kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
arm kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
arm64 kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
csky kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
h8300 arch: rearrange headers inclusion order in asm/bitops for m68k, sh and h8300 2021-05-06 19:24:11 -07:00
hexagon Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
ia64 kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
m68k Kbuild updates for v5.13 (2nd) 2021-05-08 10:00:11 -07:00
microblaze tracing updates for 5.13 2021-05-03 11:19:54 -07:00
mips kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
nds32 tracing updates for 5.13 2021-05-03 11:19:54 -07:00
nios2 Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2021-05-02 09:14:01 -07:00
openrisc drivers/char: remove /dev/kmem for good 2021-05-07 00:26:34 -07:00
parisc Kbuild updates for v5.13 (2nd) 2021-05-08 10:00:11 -07:00
powerpc kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
riscv kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
s390 kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
sh kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
sparc kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
um Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
x86 kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
xtensa Kbuild updates for v5.13 (2nd) 2021-05-08 10:00:11 -07:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
Kconfig Add Landlock, a new LSM from Mickaël Salaün <mic@linux.microsoft.com> 2021-05-01 18:50:44 -07:00