From: Jan Kiszka Date: Thu, 2 Jul 2009 19:45:47 +0000 (+0200) Subject: KVM: Fix KVM_GET_MSR_INDEX_LIST X-Git-Tag: v2.6.31-rc6~29^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e125e7b6944898831b56739a5448e705578bf7e2;p=pandora-kernel.git KVM: Fix KVM_GET_MSR_INDEX_LIST So far, KVM copied the emulated_msrs (only MSR_IA32_MISC_ENABLE) to a wrong address in user space due to broken pointer arithmetic. This caused subtle corruption up there (missing MSR_IA32_MISC_ENABLE had probably no practical relevance). Moreover, the size check for the user-provided kvm_msr_list forgot about emulated MSRs. Cc: stable@kernel.org Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- Reading git-diff-tree failed