arm64: allow kprobes on EL0 handlers
authorMark Rutland <mark.rutland@arm.com>
Wed, 19 Oct 2022 14:41:15 +0000 (15:41 +0100)
committerWill Deacon <will@kernel.org>
Tue, 15 Nov 2022 13:46:17 +0000 (13:46 +0000)
commitb3a0c010e900a9f89dcd99f10bd8f7538d21b0a9
treece6f7e5adbfd5362a08e7ece708591ac5553baaa
parentf0c4d9fc9cc9462659728d168387191387e903cc
arm64: allow kprobes on EL0 handlers

Currently do_sysinstr() and do_cp15instr() are marked with
NOKPROBE_SYMBOL(). However, these are only called for exceptions taken
from EL0, and there is no risk of recursion in kprobes, so this is not
necessary.

Remove the NOKPROBE_SYMBOL() annotation, and rename the two functions to
more clearly indicate that these are solely for exceptions taken from
EL0, better matching the names used by the lower level entry points in
entry-common.c.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Joey Gouly <joey.gouly@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20221019144123.612388-2-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/exception.h
arch/arm64/kernel/entry-common.c
arch/arm64/kernel/traps.c