KVM: x86: cleanup the page tracking SRCU instance
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Mar 2017 15:53:50 +0000 (17:53 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 28 Mar 2017 12:08:02 +0000 (14:08 +0200)
commit2beb6dad2e8f95d710159d5befb390e4f62ab5cf
treede7330624e1508cc44fd21799cc689a7038c9a86
parent7ad658b693536741c37b16aeb07840a2ce75f5b9
KVM: x86: cleanup the page tracking SRCU instance

SRCU uses a delayed work item.  Skip cleaning it up, and
the result is use-after-free in the work item callbacks.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Suggested-by: Dmitry Vyukov <dvyukov@google.com>
Cc: stable@vger.kernel.org
Fixes: 0eb05bf290cfe8610d9680b49abef37febd1c38a
Reviewed-by: Xiao Guangrong <xiaoguangrong.eric@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_page_track.h
arch/x86/kvm/page_track.c
arch/x86/kvm/x86.c