]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Check PDPTRs before allocating PAE roots
authorSean Christopherson <seanjc@google.com>
Fri, 5 Mar 2021 01:10:51 +0000 (17:10 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:42:19 +0000 (04:42 -0400)
commitf4cfb6f289aac51ef167e71df2406f7bb4c6543d
tree703a3c24f4ca714635e2de1017b09354230244e0
parent4471140a5a5aa65326d43e2fc60336fd5e3d9618
KVM: x86/mmu: Check PDPTRs before allocating PAE roots

Check the validity of the PDPTRs before allocating any of the PAE roots,
otherwise a bad PDPTR will cause KVM to leak any previously allocated
roots.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210305011101.3597423-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c