]> 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)
commit5e0a64d77b9f552e7a0526a32af78743f44ceeec
tree703a3c24f4ca714635e2de1017b09354230244e0
parentd2f9ea95d8b0fdaa916489e4659526d309c0b210
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