arm64: kprobes: Let arch do_page_fault() fix up page fault in user handler
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Fri, 2 Dec 2022 02:18:42 +0000 (11:18 +0900)
committerWill Deacon <will@kernel.org>
Mon, 5 Dec 2022 14:20:08 +0000 (14:20 +0000)
commit30a421552373d2becb378282408a399702a0f00a
tree09d12e8d7fdf6736c98470993c4373c5fd11a483
parent0fbcd8abf3375052cc7627cc53aba6f2eb189fbb
arm64: kprobes: Let arch do_page_fault() fix up page fault in user handler

Since arm64's do_page_fault() can handle the page fault correctly
than kprobe_fault_handler() according to the context, let it handle
the page fault instead of simply call fixup_exception() in the
kprobe_fault_handler().

Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/166994752269.439920.4801339965959400456.stgit@devnote3
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/probes/kprobes.c