remarkable-linux/virt
Marc Zyngier 26c4d513b6 KVM: arm/arm64: vgic: Fix deadlock on error handling
commit 1193e6aeec upstream.

Dmitry Vyukov reported that the syzkaller fuzzer triggered a
deadlock in the vgic setup code when an error was detected, as
the cleanup code tries to take a lock that is already held by
the setup code.

The fix is to avoid retaking the lock when cleaning up, by
telling the cleanup function that we already hold it.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-26 08:24:39 +01:00
..
kvm KVM: arm/arm64: vgic: Fix deadlock on error handling 2017-01-26 08:24:39 +01:00
lib KVM: eventfd: fix NULL deref irqbypass consumer 2017-01-19 20:17:59 +01:00
Makefile virt: Add virt directory to the top Makefile 2015-10-01 15:06:44 +02:00