From: David Hildenbrand Date: Wed, 4 Feb 2015 14:59:11 +0000 (+0100) Subject: KVM: s390: reinjection of irqs can fail in the tpi handler X-Git-Tag: omap-for-v4.1/fixes-rc1~202^2~42^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15462e37ca848abac7477dece65f8af25febd744;p=pandora-kernel.git KVM: s390: reinjection of irqs can fail in the tpi handler 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 Cc: stable@vger.kernel.org # 3.16+ Signed-off-by: Christian Borntraeger --- Reading git-diff-tree failed