]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: Introduce esr_brk_comment, esr_is_cfi_brk
authorPierre-Clément Tosi <ptosi@google.com>
Mon, 10 Jun 2024 06:32:35 +0000 (07:32 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 17:40:54 +0000 (17:40 +0000)
commit7a928b32f1de67760e39d22d00fef99dca69fbd9
treefb52223888fd541d574c50c1af93cbe04915e387
parent3c6eb64876937e38672fba63f11634b9ef3013e1
arm64: Introduce esr_brk_comment, esr_is_cfi_brk

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 also be used by hypervisor code.

Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20240610063244.2828978-7-ptosi@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/esr.h
arch/arm64/kernel/debug-monitors.c
arch/arm64/kernel/traps.c
arch/arm64/kvm/handle_exit.c