]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: MMU: avoid creation of unreachable pages in the shadow
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 25 Nov 2008 14:33:10 +0000 (15:33 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 26 Nov 2008 10:33:54 +0000 (12:33 +0200)
commit4faf9dd6b58f9f317326c1648e9bc08b6e6f109e
treeef61046b06de0a161dc34ac21c547cc7b1db8526
parent80df702e4f4f34c9801b568a599a1b5563bdb883
KVM: MMU: avoid creation of unreachable pages in the shadow

It is possible for a shadow page to have a parent link
pointing to a freed page. When zapping a high level table,
kvm_mmu_page_unlink_children fails to remove the parent_pte link.
For that to happen, the child must be unreachable via the shadow
tree, which can happen in shadow_walk_entry if the guest pte was
modified in between walk() and fetch(). Remove the parent pte
reference in such case.

Possible cause for oops in bug #2217430.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h