Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756523AbdLOJ6u (ORCPT ); Fri, 15 Dec 2017 04:58:50 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:36027 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756173AbdLOJ6n (ORCPT ); Fri, 15 Dec 2017 04:58:43 -0500 X-Google-Smtp-Source: ACJfBot+aJJsZs4e8i6/svv/G65PveD49Lr24WN9/Ze6OtEKzs9rjw4soAbsjmKWhD5EaxCR7LyQCSUTjuQ2cI02VRE= MIME-Version: 1.0 In-Reply-To: <1036ed60-035c-70a0-0a5f-00efe8ebf4da@redhat.com> References: <001a1145e8548cbd3d055f73374f@google.com> <1036ed60-035c-70a0-0a5f-00efe8ebf4da@redhat.com> From: Wanpeng Li Date: Fri, 15 Dec 2017 17:58:41 +0800 Message-ID: Subject: Re: BUG: unable to handle kernel paging request in __switch_to To: David Hildenbrand Cc: Dmitry Vyukov , Linus Torvalds , Andy Lutomirski , Thomas Gleixner , syzbot , Borislav Petkov , Dmitry Safonov , Peter Anvin , Linux Kernel Mailing List , Kyle Huey , Ingo Molnar , syzkaller-bugs@googlegroups.com, "the arch/x86 maintainers" , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , KVM list , "Lan, Tianyu" , James Mattson Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 671 Lines: 25 2017-12-15 17:51 GMT+08:00 David Hildenbrand : > >> 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