Re: BUG: unable to handle kernel paging request in __switch_to

From: Wanpeng Li
Date: Fri Dec 15 2017 - 04:58:54 EST


2017-12-15 17:51 GMT+08:00 David Hildenbrand <david@xxxxxxxxxx>:
>
>> int main()
>> {
>> int fd = open("/dev/kvm", 0x80102ul);
>> int vm = ioctl(fd, KVM_CREATE_VM, 0);
>> int cpu = ioctl(vm, KVM_CREATE_VCPU, 4);
>
> Not even a memory region :) So maybe the first memory access directly
> triggers a fault?
>
>> ioctl(cpu, KVM_RUN, 0);
>> return 0;
>> }
>>
>> And, yes, this in fact triggers instant reboot of kernel (running in qemu).
>> Am I missing something here?
>>
>> +kvm maintainers, you can see full thread here:
>> https://groups.google.com/forum/#!topic/syzkaller-bugs/_oveOKGm3jw

I didn't see any issue after running the test.

Regards,
Wanpeng Li