KVM: Zero guest memory before use
PATCH 1/1 KVM: Zero guest memory before use
This prevents an information leak from the host to the vmm and the guest.
Signed-off-by Avi Kivity <avi-atKUWr5tajBWk0Htik3J/[email protected]>
drivers/kvm/kvm_main.c +2 -1
@@ -620,7 +620,8 @@memset (new.phys_mem,0 , npages *sizeof (struct page *));for (i =0 ; i < npages; ++i) { - new.phys_mem[i] =alloc_page (GFP_HIGHUSER ); + new.phys_mem[i] =alloc_page (GFP_HIGHUSER + | __GFP_ZERO);if (!new.phys_mem[i]) goto out_free; }
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV