Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1413900
| From | Wanpeng Li <kernellwp@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 5/7] KVM: x86: avoid vmalloc(0) in the KVM_SET_CPUID |
| Date | 2016-06-05 02:00 +0200 |
| Message-ID | <rGtDX-7xl-9@gated-at.bofh.it> (permalink) |
| References | <rFd8e-8fg-25@gated-at.bofh.it> <rFdhT-8iE-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2016-06-01 20:09 GMT+08:00 Paolo Bonzini <pbonzini@redhat.com>:
> 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;
> }
>
The patch subject is not correct.
Regards,
Wanpeng Li
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 5/7] KVM: x86: avoid vmalloc(0) in the KVM_SET_CPUID Paolo Bonzini <pbonzini@redhat.com> - 2016-06-01 14:20 +0200 Re: [PATCH 5/7] KVM: x86: avoid vmalloc(0) in the KVM_SET_CPUID Wanpeng Li <kernellwp@gmail.com> - 2016-06-05 02:00 +0200
csiph-web