]> 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)
commit93a4bfe9ec080c238b58d27cd3724d43dc891b6e
tree4c3f4f0ab1273a88cd7edf639c944ad4212a13c0
parentab0c5c30c9ff1de4a20a0fe24f97c135bb501ee9
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