Skip to content

Commit f5fe0ad

Browse files
Wujie Duanoupton
authored andcommitted
KVM: arm64: Fix out-of-IPA space translation fault handling
Commit 11e5ea5 ("KVM: arm64: Use helpers to classify exception types reported via ESR") tried to abstract the translation fault check when handling an out-of IPA space condition, but incorrectly replaced it with a permission fault check. Restore the previous translation fault check. Fixes: 11e5ea5 ("KVM: arm64: Use helpers to classify exception types reported via ESR") Acked-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Wujie Duan <wjduan@linx-info.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/kvmarm/864jd3269g.wl-maz@kernel.org/ Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
1 parent e89c928 commit f5fe0ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/arm64/kvm/mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ int kvm_handle_guest_abort(struct kvm_vcpu *vcpu)
16371637
fault_ipa = kvm_vcpu_get_fault_ipa(vcpu);
16381638
is_iabt = kvm_vcpu_trap_is_iabt(vcpu);
16391639

1640-
if (esr_fsc_is_permission_fault(esr)) {
1640+
if (esr_fsc_is_translation_fault(esr)) {
16411641
/* Beyond sanitised PARange (which is the IPA limit) */
16421642
if (fault_ipa >= BIT_ULL(get_kvm_ipa_limit())) {
16431643
kvm_inject_size_fault(vcpu);

0 commit comments

Comments
 (0)