From: Huang Ying Date: Tue, 22 Jun 2010 06:23:11 +0000 (+0800) Subject: KVM: Fix a race condition for usage of is_hwpoison_address() X-Git-Tag: v2.6.36-rc1~580^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbeb34062fbad287c949a945a516a0c15b179993;p=pandora-kernel.git KVM: Fix a race condition for usage of is_hwpoison_address() is_hwpoison_address accesses the page table, so the caller must hold current->mm->mmap_sem in read mode. So fix its usage in hva_to_pfn of kvm accordingly. Comment is_hwpoison_address to remind other users. Reported-by: Avi Kivity Signed-off-by: Huang Ying Signed-off-by: Avi Kivity --- Reading git-diff-tree failed