OSDN Git Service

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)
commit6e0918aec49a5f89ca22c60c60cb5d20d8c9af29
tree703a3c24f4ca714635e2de1017b09354230244e0
parent6e6ec58485746eb64487bd49bf5cd90ded3d2cf6
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