]> git.ipfire.org Git - people/ms/linux.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:57:38 +0000 (14:57 -0800)
commita9496df45fc50af5652fadd52080ddc8889c498a
treec678c5e38778582cf4dfb49a8d2387c539562739
parentf79e5ec9d587278f5d23c86ac17d83c92a48e50b
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