]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Improve thread safety in pit
authorAndy Honig <ahonig@google.com>
Wed, 27 Aug 2014 21:42:54 +0000 (14:42 -0700)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:02:27 +0000 (19:02 +0100)
commit5671c6a9229edd1b1587b4ea1014d540a7e74797
tree637662426acad47f2416f2317de2405db36e67b5
parent9f9a1ce3932ca0b1bd52932d70929eab6e574d97
KVM: x86: Improve thread safety in pit

commit 2febc839133280d5a5e8e1179c94ea674489dae2 upstream.

There's a race condition in the PIT emulation code in KVM.  In
__kvm_migrate_pit_timer the pit_timer object is accessed without
synchronization.  If the race condition occurs at the wrong time this
can crash the host kernel.

This fixes CVE-2014-3611.

Signed-off-by: Andrew Honig <ahonig@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/x86/kvm/i8254.c