]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: nVMX: fix canonical check of vmcs12 HOST_RIP
authorMaxim Levitsky <mlevitsk@redhat.com>
Fri, 6 Sep 2024 22:18:24 +0000 (18:18 -0400)
committerSean Christopherson <seanjc@google.com>
Fri, 1 Nov 2024 16:22:27 +0000 (09:22 -0700)
commit90a877216e6bd4cc336ecd85ad4e95cf7a1aa1c8
tree8795556f872d710d867fb8e864f85a5f8625ba57
parent9245fd6b8531497d129a7a6e3eef258042862f85
KVM: nVMX: fix canonical check of vmcs12 HOST_RIP

HOST_RIP canonical check should check the L1 of CR4.LA57 stored in
the vmcs12 rather than the current L1's because it is legal to change
the CR4.LA57 value during VM exit from L2 to L1.

This is a theoretical bug though, because it is highly unlikely that a
VM exit will change the CR4.LA57 from the value it had on VM entry.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20240906221824.491834-5-mlevitsk@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/nested.c