]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
arm64: Handle serror in NMI context
authorJulien Thierry <julien.thierry@arm.com>
Thu, 31 Jan 2019 14:59:00 +0000 (14:59 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 6 Feb 2019 10:05:22 +0000 (10:05 +0000)
commit7d31464adf20fb8c075a3a3dfe2002a195566510
treeb4a3e18febf28c1a29ff7536ffe3a7205ab013c4
parent101b35f7def1775bf589d86676983bc359843916
arm64: Handle serror in NMI context

Per definition of the daifflags, Serrors can occur during any interrupt
context, that includes NMI contexts. Trying to nmi_enter in an nmi context
will crash.

Skip nmi_enter/nmi_exit when serror occurred during an NMI.

Suggested-by: James Morse <james.morse@arm.com>
Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Dave Martin <dave.martin@arm.com>
Cc: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/traps.c