kvm: fix page struct leak in handle_vmon
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Jan 2017 10:56:21 +0000 (11:56 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 30 Mar 2017 01:16:33 +0000 (01:16 +0000)
commitc33d5505d6591863c6d5df082b611f32b8c15ecf
tree63f560a4a97420c4110e72df564d033fab85ce69
parent2d57ae5b347eef8093737acbd642a79097a79688
kvm: fix page struct leak in handle_vmon

handle_vmon gets a reference on VMXON region page,
but does not release it. Release the reference.

Found by syzkaller; based on a patch by Dmitry.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[bwh: Backported to 4.9: use skip_emulated_instruction()]

Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name kvm-fix-page-struct-leak-in-handle_vmon.patch
arch/x86/kvm/vmx.c