1
0
Fork 0
alistair23-linux/virt
Paolo Bonzini 36343f6ea7 KVM: fix OOPS on flush_work
The conversion done by commit 3706feacd0 ("KVM: Remove deprecated
create_singlethread_workqueue") is broken.  It flushes a single work
item &irqfd->shutdown instead of all of them, and even worse if there
is no irqfd on the list then you get a NULL pointer dereference.
Revert the virt/kvm/eventfd.c part of that patch; to avoid the
deprecated function, just allocate our own workqueue---it does
not even have to be unbound---with alloc_workqueue.

Fixes: 3706feacd0
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-10-26 14:06:51 +02:00
..
kvm KVM: fix OOPS on flush_work 2016-10-26 14:06:51 +02:00
lib irqbypass: Disallow NULL token 2016-05-11 22:37:54 +02:00
Makefile virt: Add virt directory to the top Makefile 2015-10-01 15:06:44 +02:00