linux/arch/arm64
D Scott Phillips 84d16de273 arm64: sdei: abort running SDEI handlers during crash
commit 5cd474e573 upstream.

Interrupts are blocked in SDEI context, per the SDEI spec: "The client
interrupts cannot preempt the event handler." If we crashed in the SDEI
handler-running context (as with ACPI's AGDI) then we need to clean up the
SDEI state before proceeding to the crash kernel so that the crash kernel
can have working interrupts.

Track the active SDEI handler per-cpu so that we can COMPLETE_AND_RESUME
the handler, discarding the interrupted context.

Fixes: f5df269618 ("arm64: kernel: Add arch-specific SDEI entry code and CPU masking")
Signed-off-by: D Scott Phillips <scott@os.amperecomputing.com>
Cc: stable@vger.kernel.org
Reviewed-by: James Morse <james.morse@arm.com>
Tested-by: Mihai Carabas <mihai.carabas@oracle.com>
Link: https://lore.kernel.org/r/20230627002939.2758-1-scott@os.amperecomputing.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-13 09:48:42 +02:00
..
boot arm64: dts: qcom: sc8280xp-x13s: Unreserve NC pins 2023-09-13 09:48:18 +02:00
configs arm64: defconfig: Drop CONFIG_VIDEO_IMX_MEDIA 2023-09-13 09:48:30 +02:00
crypto crypto: arm64/aes-neonbs - fix crash with CFI enabled 2023-03-14 17:06:44 +08:00
hyperv arm64/hyperv: Use CPUHP_AP_HYPERV_ONLINE state to fix CPU online sequencing 2023-06-17 23:09:47 +00:00
include arm64: sdei: abort running SDEI handlers during crash 2023-09-13 09:48:42 +02:00
kernel arm64: sdei: abort running SDEI handlers during crash 2023-09-13 09:48:42 +02:00
kvm KVM: arm64: Fix hardware enable/disable flows for pKVM 2023-08-16 18:32:23 +02:00
lib arm64: csum: Fix OoB access in IP checksum code for negative lengths 2023-09-13 09:48:40 +02:00
mm arm64: mm: use ptep_clear() instead of pte_clear() in clear_flush() 2023-09-13 09:48:07 +02:00
net bpf, arm64: Fix BTI type used for freplace attached functions 2023-07-27 08:57:00 +02:00
tools arm64: Fix HFGxTR_EL2 field naming 2023-07-27 08:56:55 +02:00
xen
Kbuild
Kconfig arm64: errata: Mitigate Ampere1 erratum AC03_CPU_38 at stage-2 2023-07-23 13:54:07 +02:00
Kconfig.debug
Kconfig.platforms arm64 updates for 6.3: 2023-02-21 15:27:48 -08:00
Makefile arm64 updates for 6.3: 2023-02-21 15:27:48 -08:00