[PATCH] KVM: arm64: Do not let a L1 hypervisor access the *32_EL2 sysregs

Oliver Upton oliver.upton at linux.dev
Fri Oct 13 20:32:46 PDT 2023


On Fri, Oct 13, 2023 at 11:33:11PM +0100, Marc Zyngier wrote:
> DBGVCR32_EL2, DACR32_EL2, IFSR32_EL2 and FPEXC32_EL2 are required to
> UNDEF when AArch32 isn't implemented, which is definitely the case when
> running NV.
> 
> Given that this is the only case where these registers can trap,
> unconditionally inject an UNDEF exception.
> 
> Signed-off-by: Marc Zyngier <maz at kernel.org>

If you intend to send this as a fix for 6.6:

Reviewed-by: Oliver Upton <oliver.upton at linux.dev>

Otherwise it is on the stack of patches I'll pick up for 6.7

-- 
Thanks,
Oliver



More information about the linux-arm-kernel mailing list