]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86/kvm: Be careful not to clear KVM_VCPU_FLUSH_TLB bit
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 30 Oct 2019 19:01:31 +0000 (19:01 +0000)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 13 Mar 2020 04:31:00 +0000 (00:31 -0400)
commit1b4ec08e44376c5d6b6c77cd748d9640964bc3df
tree5da0f32380ba9a86e93f7c60749992430de59475
parentfde5fd9cf2f607b9216e3dcf262a639767b44675
x86/kvm: Be careful not to clear KVM_VCPU_FLUSH_TLB bit

BugLink: https://bugs.launchpad.net/bugs/1866678
commit 8c6de56a42e0c657955e12b882a81ef07d1d073e upstream.

kvm_steal_time_set_preempted() may accidentally clear KVM_VCPU_FLUSH_TLB
bit if it is called more than once while VCPU is preempted.

This is part of CVE-2019-3016.

(This bug was also independently discovered by Jim Mattson
<jmattson@google.com>)

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/x86/kvm/x86.c