]> git.baikalelectronics.ru Git - kernel.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)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Oct 2014 11:21:14 +0000 (13:21 +0200)
commita5d8a3b1229da93d32b717e5f90ac05e3fdf7b89
tree4c3f4f0ab1273a88cd7edf639c944ad4212a13c0
parent60727ff0f8557ef8fa4e931dbab0223f2ee99a8f
KVM: x86: Improve thread safety in pit

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.

Cc: stable@vger.kernel.org
Signed-off-by: Andrew Honig <ahonig@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/i8254.c