summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorHeiko Carstens2013-11-18 10:35:55 +0100
committerGleb Natapov2013-11-21 10:19:32 +0100
commit8a3caa6d74597c2a083f7c87f866891a0b12540b (patch)
treeee4cfd5a3787c0da3c8e84519ace12cc83461cf6 /arch/powerpc
parentkvm: mmu: delay mmu audit activation (diff)
downloadkernel-qcow2-linux-8a3caa6d74597c2a083f7c87f866891a0b12540b.tar.gz
kernel-qcow2-linux-8a3caa6d74597c2a083f7c87f866891a0b12540b.tar.xz
kernel-qcow2-linux-8a3caa6d74597c2a083f7c87f866891a0b12540b.zip
KVM: kvm_clear_guest_page(): fix empty_zero_page usage
Using the address of 'empty_zero_page' as source address in order to clear a page is wrong. On some architectures empty_zero_page is only the pointer to the struct page of the empty_zero_page. Therefore the clear page operation would copy the contents of a couple of struct pages instead of clearing a page. For kvm only arm/arm64 are affected by this bug. To fix this use the ZERO_PAGE macro instead which will return the struct page address of the empty_zero_page on all architectures. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions