lkml.org 
[lkml]   [2019]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.2 326/413] KVM: nVMX: Dont dump VMCS if virtual APIC page cant be mapped
    Date
    From: Sean Christopherson <sean.j.christopherson@intel.com>

    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 | 3 ---
    1 file changed, 3 deletions(-)

    --- a/arch/x86/kvm/vmx/nested.c
    +++ b/arch/x86/kvm/vmx/nested.c
    @@ -2878,9 +2878,6 @@ static void nested_get_vmcs12_pages(stru
    */
    vmcs_clear_bits(CPU_BASED_VM_EXEC_CONTROL,
    CPU_BASED_TPR_SHADOW);
    - } else {
    - printk("bad virtual-APIC page address\n");
    - dump_vmcs();
    }
    }


    \
     
     \ /
      Last update: 2019-07-24 21:42    [W:4.225 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site