]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: nVMX: Don't dump VMCS if virtual APIC page can't be mapped
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 7 May 2019 16:06:26 +0000 (09:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:10:59 +0000 (09:10 +0200)
commit 73cb85568433feadb79e963bf2efba9b3e9ae3df upstream.

... as a malicious userspace can run a toy guest to generate invalid
virtual-APIC page addresses in L1, i.e. flood the kernel log with error
messages.

Fixes: 690908104e39d ("KVM: nVMX: allow tests to use bad virtual-APIC page address")
Cc: stable@vger.kernel.org
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx/nested.c

index 46af3a5e92094e3b529ef821bdfe636608382b25..726e3f8d65a083b7cd32d7a2457b403d59747f3d 100644 (file)
@@ -2878,9 +2878,6 @@ static void nested_get_vmcs12_pages(struct kvm_vcpu *vcpu)
                         */
                        vmcs_clear_bits(CPU_BASED_VM_EXEC_CONTROL,
                                        CPU_BASED_TPR_SHADOW);
-               } else {
-                       printk("bad virtual-APIC page address\n");
-                       dump_vmcs();
                }
        }