KVM: x86: cleanup the page tracking SRCU instance
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Mar 2017 15:53:50 +0000 (17:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Mar 2017 08:31:45 +0000 (10:31 +0200)
commit3e8c6bd9dbc44630199892ad27ef745a45335191
treee60979d206a8debe477a6806885a237186626c3f
parent79191ea36dc9be10a9c9b03d6b341ed2d2f76045
KVM: x86: cleanup the page tracking SRCU instance

commit 2beb6dad2e8f95d710159d5befb390e4f62ab5cf upstream.

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>
Fixes: 0eb05bf290cfe8610d9680b49abef37febd1c38a
Reviewed-by: Xiao Guangrong <xiaoguangrong.eric@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/kvm_page_track.h
arch/x86/kvm/page_track.c
arch/x86/kvm/x86.c