arm64: entry: Allow handling of undefined instructions from EL1
authorWill Deacon <will.deacon@arm.com>
Tue, 7 Aug 2018 12:43:06 +0000 (13:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:28 +0000 (11:08 -0800)
commit313c940d1507e93128438a3f973fe578228b1bb1
tree046d66011baf67daea94b1740fb312ecdb194ba0
parent668c01c11b7069db36d3bd12738c9ab8487da852
arm64: entry: Allow handling of undefined instructions from EL1

[ Upstream commit 0bf0f444b2c49241b2b39aa3cf210d7c95ef6c34 ]

Rather than panic() when taking an undefined instruction exception from
EL1, allow a hook to be registered in case we want to emulate the
instruction, like we will for the SSBS PSTATE manipulation instructions.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/entry.S
arch/arm64/kernel/traps.c