On Wed, May 29, 2024 at 01:12:14PM +0100, Pierre-Clément Tosi wrote: > As it is already used in two places, move esr_comment() to a header for > re-use, with a clearer name. > > Introduce esr_is_cfi_brk() to detect kCFI BRK syndromes, currently used > by early_brk64() but soon to be also used by hypervisor code. > > Signed-off-by: Pierre-Clément Tosi <ptosi@xxxxxxxxxx> > --- > arch/arm64/include/asm/esr.h | 11 +++++++++++ > arch/arm64/kernel/debug-monitors.c | 4 +--- > arch/arm64/kernel/traps.c | 8 +++----- > arch/arm64/kvm/handle_exit.c | 2 +- > 4 files changed, 16 insertions(+), 9 deletions(-) (nit: typo in subject, should be esr_brk_comment()). With that fixed: Acked-by: Will Deacon <will@xxxxxxxxxx> Will