]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: s390: avoid memory leaks if __inject_vm() fails
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Fri, 16 Jan 2015 11:58:09 +0000 (12:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:53:03 +0000 (14:53 -0800)
commit0b4a17fc634bf511bfca67ab4c6ecea5ad6db058
treec297e3216774239389b25deda0c3b8567fda5abe
parent6d6cdcaf12560db583b098baca23e3bdab78bcaa
KVM: s390: avoid memory leaks if __inject_vm() fails

commit 428d53be5e7468769d4e7899cca06ed5f783a6e1 upstream.

We have to delete the allocated interrupt info if __inject_vm() fails.

Otherwise user space can keep flooding kvm with floating interrupts and
provoke more and more memory leaks.

Reported-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Reviewed-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kvm/interrupt.c