diff options
author | Andrew Honig <ahonig@google.com> | 2013-04-18 09:38:14 -0700 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-04-22 11:02:38 +0300 |
commit | 27469d29b3caf889ddf81c7d89f0676e45eb551d (patch) | |
tree | 21692b39235a69d5605c1ce19460ac001bfec2fa /arch/parisc | |
parent | f1797359216c1daa145a354d07b8b2b7459668f4 (diff) |
KVM: x86: Fix memory leak in vmx.c
If userspace creates and destroys multiple VMs within the same process
we leak 20k of memory in the userspace process context per VM. This
patch frees the memory in kvm_arch_destroy_vm. If the process exits
without closing the VM file descriptor or the file descriptor has been
shared with another process then we don't free the memory.
It's still possible for a user space process to leak memory if the last
process to close the fd for the VM is not the process that created it.
However, this is an unexpected case that's only caused by a user space
process that's misbehaving.
Signed-off-by: Andrew Honig <ahonig@google.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/parisc')
0 files changed, 0 insertions, 0 deletions