Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755768AbcK2REx (ORCPT ); Tue, 29 Nov 2016 12:04:53 -0500 Received: from mail-oi0-f48.google.com ([209.85.218.48]:33334 "EHLO mail-oi0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754618AbcK2REa (ORCPT ); Tue, 29 Nov 2016 12:04:30 -0500 MIME-Version: 1.0 In-Reply-To: <20161129140627.GA1682@potion> References: <20161129140627.GA1682@potion> From: Kui Zhang Date: Tue, 29 Nov 2016 09:04:28 -0800 Message-ID: Subject: Re: 4.9.0-rc6+ boot problem To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Cc: "linux-kernel@vger.kernel.org" , kvm@vger.kernel.org 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-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uATH4vIZ018149 Content-Length: 9641 Lines: 220 Thanks I was able to reproduce the problem with v4.9-rc7+ (commit 88abd8249ee8bcebb98c90e890ea5e342db832af), after git clean -xdf; make mrproper Config attached. Need to set CONFIG_KVM=y to reproduce boot issue. set CONFIG_KVM=y in menuconfig also set CONFIG_IRQ_BYPASS_MANAGER=y, I dont see config for CONFIG_IRQ_BYPASS_MANAGER in menuconfig. Since it is hidden I assumed it might be problem, if I set CONFIG_IRQ_BYPASS_MANAGER=y in config file... did not try building with only CONFIG_IRQ_BYPASS_MANAGER=y Thanks Kui.Z On Tue, Nov 29, 2016 at 6:06 AM, Radim Krčmář wrote: > 2016-11-29 03:04-0800, Kui Zhang: >> Looks like my boot issue might be kvm related. System boots fine with >> CONFIG_KVM=m > > v4.9-rc6 has some funny changes around modversion, although your bug > looks even more random ... > > Can you reproduce with v4.9-rc7 built from a clean repo? > Please send your config if the bug still happens. > > Thanks. > >> --- .config 2016-11-29 02:41:24.753930839 -0800 >> +++ .config.working 2016-11-29 02:41:11.029065291 -0800 >> @@ -3544,7 +3544,7 @@ >> # CONFIG_IMG_ASCII_LCD is not set >> # CONFIG_UIO is not set >> # CONFIG_VFIO is not set >> -CONFIG_IRQ_BYPASS_MANAGER=y >> +CONFIG_IRQ_BYPASS_MANAGER=m >> # CONFIG_VIRT_DRIVERS is not set >> >> # >> @@ -4553,7 +4553,7 @@ >> CONFIG_KVM_COMPAT=y >> CONFIG_HAVE_KVM_IRQ_BYPASS=y >> CONFIG_VIRTUALIZATION=y >> -CONFIG_KVM=y >> +CONFIG_KVM=m >> CONFIG_KVM_INTEL=m >> # CONFIG_KVM_AMD is not set >> # CONFIG_KVM_MMU_AUDIT is not set >> >> On Sun, Nov 27, 2016 at 2:23 PM, Kui Zhang wrote: >> > Hello, >> > >> > I am having problem booting 4.9.0-rc6+ on my laptop. >> > >> > 4.9.0-rc5+ works, so not likely hardware issues. >> > >> > >> > Ubuntu Zesty Zapus >> > >> > ### >> > gcc-6 with >> > >> > CONFIG_PCI_QUIRKS=y >> > CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y >> > >> > After grub, screen turns off. No pre modeset messages. Then system >> > reboot itself. >> > >> > When >> > >> > CONFIG_PCI_QUIRKS not set >> > CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS not set >> > >> > >> > System would boot up to: "Clocksource: Switched to clocksource hpet". then loop >> > >> > ''' >> > Could not create tracefs '' directory >> > Could not create directory for event >> > ''' >> > >> > ### >> > gcc-4.9 system would panic with above settings on. >> > >> > With them off, setting would boot to login prompt. Only one working terminal. >> > >> > Login works. >> > dmesg works >> > >> > lsmod hangs >> > >> > >> > >> > [ 8.436647] BUG: unable to handle kernel paging request at 0000000016000000 >> > [ 8.437448] IP: [] strcmp+0x16/0x30 >> > [ 8.438224] PGD 0 >> > >> > [ 8.438992] Oops: 0000 [#1] SMP >> > [ 8.439750] Modules linked in: >> > [ 8.440506] CPU: 6 PID: 430 Comm: systemd-udevd Not tainted 4.9.0-rc6+ #14 >> > [ 8.441266] Hardware name: Notebook >> > P15SM-A/SM1-A /P15SM-A/SM1-A , >> > BIOS 4.6.5 04/20/2015 >> > [ 8.442239] task: ffffa3d3a436e3c0 task.stack: ffffba3641604000 >> > [ 8.443033] RIP: 0010:[] [] >> > strcmp+0x16/0x30 >> > [ 8.443828] RSP: 0018:ffffba3641607bf0 EFLAGS: 00010202 >> > [ 8.444603] RAX: 000000000000006d RBX: ffffffff97fc33c0 RCX: 0000000000000a1f >> > [ 8.445382] RDX: 000000000000143e RSI: 0000000016000001 RDI: ffffba3641669fe7 >> > [ 8.446149] RBP: ffffba3641607bf0 R08: ffffffff9716cb90 R09: ffffffffc0409000 >> > [ 8.446917] R10: 00003fffffe00000 R11: 0000000000002000 R12: 0000000000000a1f >> > [ 8.447683] R13: 0000000000000010 R14: 000000000000143e R15: 0000000000000000 >> > [ 8.448446] FS: 00007f4830a4c8c0(0000) GS:ffffa3d3afb80000(0000) >> > knlGS:0000000000000000 >> > [ 8.449202] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 >> > [ 8.449957] CR2: 0000000016000000 CR3: 0000000224a12000 CR4: 00000000001406e0 >> > [ 8.450710] Stack: >> > [ 8.451457] ffffba3641607c00 ffffffff9716cba2 ffffba3641607c50 >> > ffffffff974ebede >> > [ 8.452232] ffffffff9716cb90 ffffffff97fb91d0 ffffba3641669fe6 >> > ffffba3641607cb8 >> > [ 8.453005] 0000000000000000 ffffffff97c2e840 ffffba3641687f00 >> > ffffba3641607e80 >> > [ 8.453779] Call Trace: >> > [ 8.454608] [] cmp_name+0x12/0x20 >> > [ 8.455621] [] bsearch+0x5e/0x90 >> > [ 8.456656] [] ? unregister_module_notifier+0x20/0x20 >> > [ 8.457444] [] find_symbol_in_section+0x3b/0xf0 >> > [ 8.458228] [] ? mod_find_symname+0x70/0x70 >> > [ 8.459018] [] each_symbol_section+0x26/0x50 >> > [ 8.459801] [] find_symbol+0x36/0xa0 >> > [ 8.460570] [] ? find_sec+0x48/0x80 >> > [ 8.461553] [] resolve_symbol.isra.61+0x4a/0xb0 >> > [ 8.461556] [] ? get_modinfo.isra.56+0x46/0xa0 >> > [ 8.461558] [] load_module+0xc57/0x2700 >> > [ 8.461560] [] ? ima_post_read_file+0x74/0x90 >> > [ 8.461563] [] ? security_kernel_post_read_file+0x6b/0x80 >> > [ 8.461566] [] ? kernel_read_file+0x172/0x190 >> > [ 8.461568] [] SYSC_finit_module+0x96/0xd0 >> > [ 8.461569] [] SyS_finit_module+0xe/0x10 >> > [ 8.461571] [] do_syscall_64+0x6a/0x220 >> > [ 8.461574] [] entry_SYSCALL64_slow_path+0x25/0x25 >> > [ 8.461591] Code: 01 0f b6 4e ff 48 83 c2 01 84 c9 88 4a ff 75 ed >> > 5d c3 0f 1f 00 55 48 89 e5 eb 04 84 c0 74 18 48 83 c7 01 48 83 c6 01 >> > 0f b6 47 ff <3a> 46 ff 74 eb 19 c0 5d 83 c8 01 c3 31 c0 5d c3 66 2e 0f >> > 1f 84 >> > [ 8.461593] RIP [] strcmp+0x16/0x30 >> > [ 8.461594] RSP >> > [ 8.461594] CR2: 0000000016000000 >> > [ 8.461605] ---[ end trace 470acb4c22b46ca8 ]--- >> > >> > >> > [ 7.367754] BUG: unable to handle kernel paging request at 000000002c000000 >> > [ 7.368663] IP: [] strcmp+0x16/0x30 >> > [ 7.369408] PGD 0 >> > >> > [ 7.370111] Oops: 0000 [#1] SMP >> > [ 7.370805] Modules linked in: >> > [ 7.371504] CPU: 0 PID: 360 Comm: systemd-modules Tainted: G >> > O 4.9.0-rc5 #17 >> > [ 7.372211] Hardware name: Notebook >> > P15SM-A/SM1-A /P15SM-A/SM1-A , >> > BIOS 4.6.5 04/20/2015 >> > [ 7.372963] task: ffff8f02659b4740 task.stack: ffffa9de81274000 >> > [ 7.373687] RIP: 0010:[] [] >> > strcmp+0x16/0x30 >> > [ 7.374444] RSP: 0018:ffffa9de81277c20 EFLAGS: 00010202 >> > [ 7.375169] RAX: 0000000000000070 RBX: ffffffffadfc3390 RCX: 0000000000000a1e >> > [ 7.375899] RDX: 000000000000143d RSI: 000000002c000001 RDI: ffffa9de811f2da1 >> > [ 7.376633] RBP: ffffa9de81277c20 R08: ffffffffad16c550 R09: ffffffffc03ca000 >> > [ 7.377364] R10: 00003fffffe00000 R11: 0000000000002000 R12: 0000000000000a1e >> > [ 7.378097] R13: 0000000000000010 R14: 000000000000143d R15: 0000000000000000 >> > [ 7.378832] FS: 00007fa5291ef8c0(0000) GS:ffff8f026fa00000(0000) >> > knlGS:0000000000000000 >> > [ 7.379591] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 >> > [ 7.380327] CR2: 000000002c000000 CR3: 00000002228f0000 CR4: 00000000001406f0 >> > [ 7.381073] Stack: >> > [ 7.381796] ffffa9de81277c30 ffffffffad16c562 ffffa9de81277c80 >> > ffffffffad4eb23e >> > [ 7.382557] ffffffffad16c550 ffffffffadfb91b0 ffffa9de811f2da0 >> > ffffa9de81277ce8 >> > [ 7.383275] 0000000000000000 ffffffffadc2e7c0 ffffa9de811f46b0 >> > ffffa9de81277eb0 >> > [ 7.383986] Call Trace: >> > [ 7.384697] [] cmp_name+0x12/0x20 >> > [ 7.385403] [] bsearch+0x5e/0x90 >> > [ 7.386188] [] ? unregister_module_notifier+0x20/0x20 >> > [ 7.387304] [] find_symbol_in_section+0x3b/0xf0 >> > [ 7.388407] [] ? mod_find_symname+0x70/0x70 >> > [ 7.389504] [] each_symbol_section+0x26/0x50 >> > [ 7.390590] [] find_symbol+0x36/0xa0 >> > [ 7.391662] [] ? find_sec+0x48/0x80 >> > [ 7.392734] [] resolve_symbol.isra.61+0x4a/0xb0 >> > [ 7.393804] [] ? get_modinfo.isra.56+0x46/0xa0 >> > [ 7.394880] [] load_module+0xc57/0x2700 >> > [ 7.395948] [] ? ima_post_read_file+0x74/0x90 >> > [ 7.397015] [] ? security_kernel_post_read_file+0x6b/0x80 >> > [ 7.398070] [] ? kernel_read_file+0x172/0x190 >> > [ 7.399118] [] SYSC_finit_module+0x96/0xd0 >> > [ 7.400169] [] SyS_finit_module+0xe/0x10 >> > [ 7.401205] [] entry_SYSCALL_64_fastpath+0x17/0x98 >> > [ 7.402242] Code: 01 0f b6 4e ff 48 83 c2 01 84 c9 88 4a ff 75 ed >> > 5d c3 0f 1f 00 55 48 89 e5 eb 04 84 c0 74 18 48 83 c7 01 48 83 c6 01 >> > 0f b6 47 ff <3a> 46 ff 74 eb 19 c0 5d 83 c8 01 c3 31 c0 5d c3 66 2e 0f >> > 1f 84 >> > [ 7.403491] RIP [] strcmp+0x16/0x30 >> > [ 7.404605] RSP >> > [ 7.405706] CR2: 000000002c000000 >> > [ 7.406815] ---[ end trace 5658e0e68fb01f05 ]--- >> > >> > >> > Thanks >> > Kui.Z >> -- >> To unsubscribe from this list: send the line "unsubscribe kvm" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html