]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: nVMX: Clear pending KVM_REQ_GET_VMCS12_PAGES when leaving nested
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 21 Jul 2019 11:52:18 +0000 (13:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2019 06:28:38 +0000 (08:28 +0200)
commit79a431342a92c98f96a6a35ffda37b25ab0fecbe
tree7ba1b35bd5e9187b0549543a046259cee1d1537a
parent93e7720cc238bfb9784bb2b8d340b4595e7891b1
KVM: nVMX: Clear pending KVM_REQ_GET_VMCS12_PAGES when leaving nested

commit cf64527bb33f6cec2ed50f89182fc4688d0056b6 upstream.

Letting this pend may cause nested_get_vmcs12_pages to run against an
invalid state, corrupting the effective vmcs of L1.

This was triggerable in QEMU after a guest corruption in L2, followed by
a L1 reset.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Cc: stable@vger.kernel.org
Fixes: 7f7f1ba33cf2 ("KVM: x86: do not load vmcs12 pages while still in SMM")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx/nested.c