]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Set IL for injected FPAC exceptions during ERET emulation
authorFuad Tabba <tabba@google.com>
Thu, 18 Jun 2026 12:16:40 +0000 (13:16 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 22 Jun 2026 09:44:08 +0000 (10:44 +0100)
commita52d6d68ad30374dd794bff300d8538e35ee49a8
tree7f0b139d1df421a7cc59fc5a96827d6c420eaebb
parentadd40af98b34764ff5603dce297160fde12d784c
KVM: arm64: Set IL for injected FPAC exceptions during ERET emulation

The FPAC syndrome constructed during nested ERET emulation does not set
IL. For FPAC (EC=0x1C), IL reflects the instruction length. ERET and
its authenticated variants are always A64 32-bit instructions, so IL
must be 1.

Fixes: 213b3d1ea161 ("KVM: arm64: nv: Handle ERETA[AB] instructions")
Suggested-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260618121643.4105064-5-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/emulate-nested.c