diff options
| author | Paolo Bonzini <[email protected]> | 2016-06-01 12:09:22 +0000 |
|---|---|---|
| committer | Radim Krčmář <[email protected]> | 2016-06-02 15:38:50 +0000 |
| commit | f8c1b85b2523da59c8c03ea94e9d0fac04155943 (patch) | |
| tree | 4d421bea0523fcdc0cfa80ad8a4df84128912505 /drivers/gpu/drm/omapdrm/omap_gem.c | |
| parent | KVM: irqfd: fix NULL pointer dereference in kvm_irq_map_gsi (diff) | |
| download | kernel-f8c1b85b2523da59c8c03ea94e9d0fac04155943.tar.gz kernel-f8c1b85b2523da59c8c03ea94e9d0fac04155943.zip | |
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 <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Radim Krčmář <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.c')
0 files changed, 0 insertions, 0 deletions
