KVM: x86: check for cr3 validity in mmu_alloc_roots
commit8d31fceee486d4f75ece5efcb02f53ffd25e1513
authorMarcelo Tosatti <mtosatti@redhat.com>
Mon, 3 Aug 2009 17:57:49 +0000 (3 14:57 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:33:27 +0000 (8 20:33 -0700)
tree6c013295680b7bec732a4f13a3c276301c709098
parent4877f4a4c8d80472228e0c843fee5957ae1f94d1
KVM: x86: check for cr3 validity in mmu_alloc_roots

(cherry picked from commit 8986ecc0ef58c96eec48d8502c048f3ab67fd8e2)

Verify the cr3 address stored in vcpu->arch.cr3 points to an existant
memslot. If not, inject a triple fault.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c