Commit c1fc1d2
kvm: fix page struct leak in handle_vmon
commit 06ce521af9558814b8606c0476c54497cf83a653 upstream.
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 3.16: use skip_emulated_instruction()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 98c953a commit c1fc1d2
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6678 | 6678 | | |
6679 | 6679 | | |
6680 | 6680 | | |
6681 | | - | |
6682 | | - | |
| 6681 | + | |
6683 | 6682 | | |
| 6683 | + | |
| 6684 | + | |
| 6685 | + | |
| 6686 | + | |
6684 | 6687 | | |
| 6688 | + | |
| 6689 | + | |
6685 | 6690 | | |
6686 | 6691 | | |
6687 | 6692 | | |
6688 | 6693 | | |
| 6694 | + | |
6689 | 6695 | | |
6690 | 6696 | | |
6691 | 6697 | | |
| |||
0 commit comments