diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-03-27 17:53:50 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-03-28 14:08:02 +0200 |
commit | 2beb6dad2e8f95d710159d5befb390e4f62ab5cf (patch) | |
tree | de7330624e1508cc44fd21799cc689a7038c9a86 /arch/x86/include/asm/kvm_page_track.h | |
parent | 7ad658b693536741c37b16aeb07840a2ce75f5b9 (diff) | |
download | linux-stable-2beb6dad2e8f95d710159d5befb390e4f62ab5cf.tar.gz linux-stable-2beb6dad2e8f95d710159d5befb390e4f62ab5cf.tar.bz2 linux-stable-2beb6dad2e8f95d710159d5befb390e4f62ab5cf.zip |
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>
Diffstat (limited to 'arch/x86/include/asm/kvm_page_track.h')
-rw-r--r-- | arch/x86/include/asm/kvm_page_track.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_page_track.h b/arch/x86/include/asm/kvm_page_track.h index d74747b031ec..c4eda791f877 100644 --- a/arch/x86/include/asm/kvm_page_track.h +++ b/arch/x86/include/asm/kvm_page_track.h @@ -46,6 +46,7 @@ struct kvm_page_track_notifier_node { }; void kvm_page_track_init(struct kvm *kvm); +void kvm_page_track_cleanup(struct kvm *kvm); void kvm_page_track_free_memslot(struct kvm_memory_slot *free, struct kvm_memory_slot *dont); |