Paolo Bonzini
f8c1b85b25
KVM: x86: avoid vmalloc(0) in the KVM_SET_CPUID
This causes an ugly dmesg splat. Beautified syzkaller testcase:
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <linux/kvm.h>
long r[8];
int main()
{
struct kvm_irq_routing ir = { 0 };
r[2] = open("/dev/kvm", O_RDWR);
r[3] = ioctl(r[2], KVM_CREATE_VM, 0);
r[4] = ioctl(r[3], KVM_SET_GSI_ROUTING, &ir);
return 0;
}
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
2016-06-02 17:38:50 +02:00
..
2016-06-02 11:52:21 +02:00
2016-03-20 19:08:56 -07:00
2015-06-19 17:16:25 +02:00
2015-03-26 21:43:12 +00:00
2015-09-14 18:43:19 +02:00
2016-05-11 22:37:55 +02:00
2016-06-02 17:38:50 +02:00
2016-05-13 17:29:23 +02:00
2016-06-02 17:38:50 +02:00
2015-07-10 13:25:26 +02:00
2014-10-24 13:30:47 +02:00