linux/arch/s390/kvm
David Hildenbrand cde78e45e7 KVM: s390: reinjection of irqs can fail in the tpi handler
commit 15462e37ca upstream.

The reinjection of an I/O interrupt can fail if the list is at the limit
and between the dequeue and the reinjection, another I/O interrupt is
injected (e.g. if user space floods kvm with I/O interrupts).

This patch avoids this memory leak and returns -EFAULT in this special
case. This error is not recoverable, so let's fail hard. This can later
be avoided by not dequeuing the interrupt but working directly on the
locked list.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-05-04 16:06:38 +01:00
..
diag.c KVM: s390: split SIE state guest prefix field 2014-05-16 14:57:31 +02:00
gaccess.c KVM: s390: Fix ipte locking 2015-01-05 13:48:36 +00:00
gaccess.h KVM: s390: Enable DAT support for TPROT handler 2014-05-30 09:39:36 +02:00
guestdbg.c KVM: s390: return -EFAULT if copy_from_user() fails 2014-05-06 14:57:59 +02:00
intercept.c KVM: s390: interpretive execution of SIGP EXTERNAL CALL 2014-05-16 14:57:28 +02:00
interrupt.c KVM: s390: reinjection of irqs can fail in the tpi handler 2015-05-04 16:06:38 +01:00
irq.h KVM: s390: irq routing for adapter interrupts. 2014-03-21 13:43:00 +01:00
Kconfig KVM: s390: irq routing for adapter interrupts. 2014-03-21 13:43:00 +01:00
kvm-s390.c KVM: s390: base hrtimer on a monotonic clock 2015-02-24 10:01:08 +00:00
kvm-s390.h KVM: s390: reinjection of irqs can fail in the tpi handler 2015-05-04 16:06:38 +01:00
Makefile KVM: s390: hardware support for guest debugging 2014-04-22 13:24:51 +02:00
priv.c KVM: s390: reinjection of irqs can fail in the tpi handler 2015-05-04 16:06:38 +01:00
sigp.c KVM: s390: clean up interrupt injection in sigp code 2014-05-30 09:39:37 +02:00
trace-s390.h KVM: s390: enable IBS for single running VCPUs 2014-04-29 15:01:54 +02:00
trace.h KVM: s390: interpretive execution of SIGP EXTERNAL CALL 2014-05-16 14:57:28 +02:00