Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF50EC433F5 for ; Tue, 14 Dec 2021 16:39:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236121AbhLNQi7 (ORCPT ); Tue, 14 Dec 2021 11:38:59 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:48208 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234227AbhLNQi6 (ORCPT ); Tue, 14 Dec 2021 11:38:58 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id BAC7F1F37C; Tue, 14 Dec 2021 16:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1639499937; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HGrFqd1TgthD/FPWqDOnLbT+hA4Ig5Z+vkAH/sxJ/1c=; b=2Wm7nXmNqx6+VdJxjquY29TC6EIbPRcuw7VMg0rde148DhltIkFhbQV1/rcLNIrFUGETuF QtuB9C+1AJ0uYAExnbpbQxIaFuNpeSfPZvx6epHNDqBNA2elfWCukPQgGqLcHVtoB9aZyd /uc04nvD5xFGCwPCK87xwEX2Njyc+80= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1639499937; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HGrFqd1TgthD/FPWqDOnLbT+hA4Ig5Z+vkAH/sxJ/1c=; b=jHf6gI7LkdgC/77SawBJNhSW9K0ukLYrEFOMDLtsW5reLy36qAizeCRHcWUqyA0nyDRo9b pLdROan7+QgrWaDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7F35513CE9; Tue, 14 Dec 2021 16:38:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id S2xCHqHIuGFyCQAAMHmgww (envelope-from ); Tue, 14 Dec 2021 16:38:57 +0000 Date: Tue, 14 Dec 2021 17:38:57 +0100 From: Borislav Petkov To: kernel test robot Cc: Joerg Roedel , LKML , x86@kernel.org, lkp@lists.01.org, lkp@intel.com Subject: Re: [x86/mm/64] f154f29085: BUG:kernel_reboot-without-warning_in_boot_stage Message-ID: References: <20211209144141.GC25654@xsang-OptiPlex-9020> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20211209144141.GC25654@xsang-OptiPlex-9020> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 09, 2021 at 10:41:41PM +0800, kernel test robot wrote: >=20 >=20 > Greeting, >=20 > FYI, we noticed the following commit (built with clang-14): >=20 > commit: f154f290855b070cc94dd44ad253c0ef8a9337bb ("x86/mm/64: Flush globa= l TLB on boot and AP bringup") > https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git x86/mm >=20 > in testcase: boot >=20 > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -= m 16G >=20 > caused below changes (please refer to attached dmesg/kmsg for entire log/= backtrace): >=20 >=20 > +-------------------------------------------------+------------+---------= ---+ > | | 9de4999050 | f154f290= 85 | > +-------------------------------------------------+------------+---------= ---+ > | BUG:kernel_reboot-without-warning_in_boot_stage | 0 | 13 = | > +-------------------------------------------------+------------+---------= ---+ >=20 >=20 > If you fix the issue, kindly add following tag > Reported-by: kernel test robot >=20 >=20 > Physical KASLR using RDTSC... > Virtual KASLR using RDTSC... >=20 > Decompressing Linux... Parsing ELF... Performing relocations... done. > Booting the kernel. > BUG: kernel reboot-without-warning in boot stage > Linux version 5.16.0-rc3-00003-gf154f290855b #1 > Command line: ip=3D::::vm-snb-192::dhcp root=3D/dev/ram0 user=3Dlkp job= =3D/lkp/jobs/scheduled/vm-snb-192/boot-1-debian-10.4-x86_64-20200603.cgz-f1= 54f290855b070cc94dd44ad253c0ef8a9337bb-20211208-23538-lnvkeg-5.yaml ARCH=3D= x86_64 kconfig=3Dx86_64-randconfig-a013-20211207 branch=3Dtip/x86/mm commit= =3Df154f290855b070cc94dd44ad253c0ef8a9337bb BOOT_IMAGE=3D/pkg/linux/x86_64-= randconfig-a013-20211207/clang-14/f154f290855b070cc94dd44ad253c0ef8a9337bb/= vmlinuz-5.16.0-rc3-00003-gf154f290855b vmalloc=3D128M initramfs_async=3D0 p= age_owner=3Don max_uptime=3D600 RESULT_ROOT=3D/result/boot/1/vm-snb/debian-= 10.4-x86_64-20200603.cgz/x86_64-randconfig-a013-20211207/clang-14/f154f2908= 55b070cc94dd44ad253c0ef8a9337bb/3 LKP_SERVER=3Dinternal-lkp-server selinux= =3D0 debug apic=3Ddebug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout= =3D100 net.ifnames=3D0 printk.devkmsg=3Don panic=3D-1 softlockup_panic=3D1 = nmi_watchdog=3Dpanic oops=3Dpanic load_ramdisk=3D2 prompt_ramdisk=3D0 drbd.= minor_count=3D8 systemd.log_level=3Derr ignore_loglevel console=3Dtty0 earl= yprintk=3DttyS0,115200 console=3DttyS0,115200 vga=3Dnormal rw rcuperf.shutd= own=3D0 watchdog_thresh=3D240 >=20 > Kboot worker: lkp-worker30 > Elapsed time: 60 My guest boots fine here on an AMD host, albeit it takes a while until "Booting the kernel" appears. You probably should verify by hand whether your guest simply needs longer before it starts booting the kernel... early console in setup code early console in extract_kernel input_data: 0x0000000005ce82e0 input_len: 0x0000000001d21920 output: 0x0000000001000000 output_len: 0x000000000650d2ec kernel_total_size: 0x0000000006e2c000 needed_size: 0x0000000007000000 trampoline_32bit: 0x000000000009d000 Physical KASLR using RDTSC... Virtual KASLR using RDTSC... Decompressing Linux... Parsing ELF... Performing relocations... done. Booting the kernel. [ 0.000000][ T0] Linux version 5.16.0-rc3-00005-g35fa745286ac (boris@= zn) (ClangBuiltLinux clang version 14.0.0 (https://github.com/llvm/llvm-pro= ject 08a770c378ca5d8975ef305d15f297c3f980d186), GNU ld (GNU Binutils for De= bian) 2.37) #3 PREEMPT Tue Dec 14 17:29:41 CET 2021 [ 0.000000][ T0] Command line: root=3D/dev/sda1 resume=3D/dev/sda2 de= bug ignore_loglevel log_buf_len=3D16M earlyprintk=3DttyS0,115200 console=3D= ttyS0,115200 console=3Dtty0 no_console_suspend net.ifnames=3D0=20 [ 0.000000][ T0] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floati= ng point registers' [ 0.000000][ T0] x86/fpu: Supporting XSAVE feature 0x002: 'SSE regist= ers' [ 0.000000][ T0] x86/fpu: Supporting XSAVE feature 0x004: 'AVX regist= ers' [ 0.000000][ T0] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 2= 56 [ 0.000000][ T0] x86/fpu: Enabled xstate features 0x7, context size i= s 832 bytes, using 'standard' format. [ 0.000000][ T0] signal: max sigframe size: 1360 [ 0.000000][ T0] printk: debug: ignoring loglevel setting. [ 0.000000][ T0] printk: bootconsole [earlyser0] enabled [ 0.000000][ T0] BIOS-provided physical RAM map: =2E.. --=20 Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH, GF: Ivo Totev, HRB 36809, AG N=C3=BCr= nberg