Bug#599507: SVM: Fix wrong intercept masks on 32 bit
reopen 599507
found 599507 2.6.32-27
thanks
Package: linux-2.6.32
Severity: normal
The bug is not fixed, since
features/all/KVM-x86-Add-KVM_GET-SET_VCPU_EVENTS.patch from
debian/pacthes/series/12 introduces the new function svm_set_nmi_mask(),
which also has the wrong "1UL" instead of the correct "1ULL".
--- a/arch/x86/kvm/svm.c 2010-11-24 14:29:05.000000000 +0100
+++ b/arch/x86/kvm/svm.c 2010-11-24 13:24:35.000000000 +0100
@@ -2566,10 +2479,10 @@ static void svm_set_nmi_mask(struct kvm_
if (masked) {
svm->vcpu.arch.hflags |= HF_NMI_MASK;
- svm->vmcb->control.intercept |= (1UL << INTERCEPT_IRET);
+ svm->vmcb->control.intercept |= (1ULL << INTERCEPT_IRET);
} else {
svm->vcpu.arch.hflags &= ~HF_NMI_MASK;
- svm->vmcb->control.intercept &= ~(1UL << INTERCEPT_IRET);
+ svm->vmcb->control.intercept &= ~(1ULL << INTERCEPT_IRET);
}
}
Stable (2.6.32.26) applied the patch, but since it doesn't habe
svm_set_nmi_mask(), its okay.
Debian on the other hand has the back-ported svm_set_nmi_mask() and
needs the above patch.
Sincerely
Philipp
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--
/ / (_)__ __ ____ __ Philipp Hahn
/ /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\ pmhahn@pmhahn.de
Reply to: