KVM: arm64: Fix early exit ptrauth handling
authorMarc Zyngier <maz@kernel.org>
Wed, 13 Oct 2021 12:03:36 +0000 (13:03 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 18 Oct 2021 15:57:08 +0000 (16:57 +0100)
commit8a049862c38f0c78b0e01ab5d36db1bffc832675
treee616d432e729f056cb65f5b605023595a5b0da46
parent5f39efc42052b042c4d7ba6fd77934e8de43e10c
KVM: arm64: Fix early exit ptrauth handling

The previous rework of the early exit code to provide an EC-based
decoding tree missed the fact that we have two trap paths for
ptrauth: the instructions (EC_PAC) and the sysregs (EC_SYS64).

Rework the handlers to call the ptrauth handling code on both
paths.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://lore.kernel.org/r/20211013120346.2926621-2-maz@kernel.org
arch/arm64/kvm/hyp/include/hyp/switch.h