]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd6aa7d9c4fa02a500f43535995db94cbe1656ddf
treee616d432e729f056cb65f5b605023595a5b0da46
parent490d1b6781e11417c2b930103b5982a0ef27d9ba
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