x86,kprobes: WARN if kprobes tries to handle a fault
authorPeter Zijlstra <peterz@infradead.org>
Tue, 25 May 2021 07:25:20 +0000 (09:25 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 1 Jun 2021 14:00:09 +0000 (16:00 +0200)
commit00afe83098f59d3091a800d0db188ca495b2bc02
treedf2f4854033c45e8ed7958bdbce4a2b511586cd9
parentec6aba3d2be1ed75b3f4c894bb64a36d40db1f55
x86,kprobes: WARN if kprobes tries to handle a fault

With the removal of kprobe::handle_fault there is no reason left that
kprobe_page_fault() would ever return true on x86, make sure it
doesn't happen by accident.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20210525073213.660594073@infradead.org
arch/x86/mm/fault.c