[GIT PULL 3/8] KVM: s390: fix get_all_floating_irqs

2015-03-31 Thread Christian Borntraeger
From: Jens Freimann This fixes a bug introduced with commit c05c4186bbe4 ("KVM: s390: add floating irq controller"). get_all_floating_irqs() does copy_to_user() while holding a spin lock. Let's fix this by filling a temporary buffer first and copy it to userspace after giving up the lock. Cc:

Re: [GIT PULL 3/8] KVM: s390: fix get_all_floating_irqs

2015-03-31 Thread Heiko Carstens
On Tue, Mar 31, 2015 at 03:01:58PM +0200, Christian Borntraeger wrote: > From: Jens Freimann > > This fixes a bug introduced with commit c05c4186bbe4 ("KVM: s390: > add floating irq controller"). > > get_all_floating_irqs() does copy_to_user() while holding > a spin lock. Let's fix this by filli

Re: [GIT PULL 3/8] KVM: s390: fix get_all_floating_irqs

2015-03-31 Thread Christian Borntraeger
Am 31.03.2015 um 16:12 schrieb Heiko Carstens: > On Tue, Mar 31, 2015 at 03:01:58PM +0200, Christian Borntraeger wrote: >> From: Jens Freimann >> >> This fixes a bug introduced with commit c05c4186bbe4 ("KVM: s390: >> add floating irq controller"). >> >> get_all_floating_irqs() does copy_to_user()