]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: s390: floating irqs: fix user triggerable endless loop
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Thu, 15 Jan 2015 16:56:18 +0000 (17:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:53:02 +0000 (14:53 -0800)
commit6d6cdcaf12560db583b098baca23e3bdab78bcaa
tree55fac7a8e662fc5f70dbd9ff7c832fd2ef20683f
parent6d351caba56c7fc13eda9a8adb2c41621ac62b26
KVM: s390: floating irqs: fix user triggerable endless loop

commit 8e2207cdd087ebb031e9118d1fd0902c6533a5e5 upstream.

If a vm with no VCPUs is created, the injection of a floating irq
leads to an endless loop in the kernel.

Let's skip the search for a destination VCPU for a floating irq if no
VCPUs were created.

Reviewed-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.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