Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1000495ybg; Mon, 1 Jun 2020 21:41:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2CksKaz8FjtIGLAVjltRm3aMH7gZTSAB+MpYAylEAJQhjbZT0Doat6wkhmkO0Eno56y1K X-Received: by 2002:ac8:7349:: with SMTP id q9mr6028983qtp.276.1591072885518; Mon, 01 Jun 2020 21:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591072885; cv=none; d=google.com; s=arc-20160816; b=wx92RcV+4d79yj1BxXfv+nG6gOueR3wgwqfPFJtcdHf34VlDknA3GDo+HkCDMSUUi7 Cg92DSR1fiixKdMwHUWcYmjVMaBUZzYoo9jQbou3Ya7nXTQyyYXUV0JbN8l8UShHVJx1 SMIrF6ihSLfoUOnNkmtcGBSCcSM85cmE4Dr8dyN1c+WIfczdQlC2ZK0kB8uNl0+DppR0 ls4wXbQpU5u2HJHz/Xu25TycX0kz3dNEccgBp4lJyKd3Yds8ozV6nDaLO2eWkCICtEXz lo6BZm33cColYFtfAK5WygKudSXRoHx7QhjiGy77k46wxrDLAj/3V/hChfRQGwpDbjdM KN/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=2mGIqy6/a7zhslBs8rG6G8pBbtrJLwzh7b8mqjv+i0A=; b=qN9HQJXwrgzli/PaySymfIlrPkQQwpoRA0PB+jUcMkaN1q69KkI8G1+1rNCElJ0BUJ 8R7L7hGpU9IRpoRfFAurRKz5W8uUjzkE5B+0qP2LPp9lBIJTI/0uSSV0OZ5au/9xxr+k 9z+oPsJG96sTvpQOi10M5n7J0W3NIkQ11SgD9WCb8QKPap6RAbUJyJnHeRyLWofCnBJI gYpqajTm1vnekFU6An428rky4YLAV9s7RBfg3Ge2dhBYrXhq6eXTqtw2EVhW8qQMtYM2 4qBCNKnwxrG38LFR6uYRGutu0A2Dd0S/mGrejduuNpoJzgBKlL4Z2UmJb4oWrloSKOvR vo2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si848217ejy.536.2020.06.01.21.41.02; Mon, 01 Jun 2020 21:41:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726139AbgFBEiI (ORCPT + 99 others); Tue, 2 Jun 2020 00:38:08 -0400 Received: from mga14.intel.com ([192.55.52.115]:45481 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgFBEiI (ORCPT ); Tue, 2 Jun 2020 00:38:08 -0400 IronPort-SDR: ZoDdzBhT1wJPzqfZIIOcoBXO4jK3I2KVkb4dtdkYux7tibxDtrPM2ygT4+/r+i0xLftwVQ8jyN Ec3qhfgPeZoA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2020 21:38:07 -0700 IronPort-SDR: cKYIDBIRRdHHKmmyjKkiUpsWzEvJXAj/NfCn2B1OVL8GcnwSUutmOZ3tQIU3f2T8cJymrFZ36w jHg0N7c4QEwg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,463,1583222400"; d="scan'208";a="470571779" Received: from dzhu2-mobl.ccr.corp.intel.com (HELO [10.255.28.15]) ([10.255.28.15]) by fmsmga005.fm.intel.com with ESMTP; 01 Jun 2020 21:38:04 -0700 Subject: Re: [LKP] Re: 28307d938f ("percpu: make pcpu_alloc() aware of current gfp .."): BUG: kernel reboot-without-warning in boot stage To: Filipe Manana , kernel test robot Cc: LKP , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , "Linus, Torvalds," References: <5ed0b6ea.QaEVKYBGHpcVDpW8%lkp@intel.com> <21fb7dbf-1fd2-cfcb-860e-c342ae0c310e@suse.com> From: Li Zhijian Message-ID: Date: Tue, 2 Jun 2020 12:37:24 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <21fb7dbf-1fd2-cfcb-860e-c342ae0c310e@suse.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Filipe, LKP checked blow dmesg as the indicator in this problem >> [ 0.144174] RAMDISK: [mem 0x7fa2e000-0x7fffffff] >> [ 0.144559] ACPI: Early table checksum verification disabled >> [ 0.144985] ACPI: RSDP 0x00000000000F5850 000014 (v00 BOCHS ) >> [ 0.145424] ACPI: RSDT 0x00000000BFFE15C9 000030 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001) >> [ 0.146051] ACPI: FACP 0x00000000BFFE149D 000074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001) >> BUG: kernel reboot-without-warning in boot stage >> And i have reproduced it with script in attachment. this issue is gone when i reverted this commit 28307d938f Please note that - i reproduced it with kernel compiled by gcc-5 - i failed to reproduce it in kernel compiled by gcc-7 so far :~/1787$ ./reproduce.sh obj/arch/x86/boot/bzImage qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -kernel obj/arch/x86/boot/bzImage -m 8192 -smp 2 -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::32032-:22 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -serial stdio -display none -monitor null -append root=/dev/ram0 hung_task_panic=1 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw rcuperf.shutdown=0 watchdog_thresh=60 early console in setup code Wrong EFI loader signature. early console in extract_kernel input_data: 0x0000000006f752d8 input_len: 0x000000000130dd3c output: 0x0000000001000000 output_len: 0x0000000007200a48 kernel_total_size: 0x0000000006826000 needed_size: 0x0000000007400000 trampoline_32bit: 0x000000000009d000 Decompressing Linux... Parsing ELF... done. Booting the kernel. [    0.000000] Linux version 5.7.0-rc4-00168-g28307d938fb2 (lizhijian@shao2-debian) (gcc version 5.5.0 20171010 (Debian 5.5.0-12), GNU ld (GNU Binutils for Debian) 2.34) #2 SMP PREEMPT Tue Jun 2 11:23:59 CST 2020 [    0.000000] Command line: root=/dev/ram0 hung_task_panic=1 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw rcuperf.shutdown=0 watchdog_thresh=60 [    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' [    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' [    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' [    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]: 256 [    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format. [    0.000000] BIOS-provided physical RAM map: [    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable [    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved [    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved [    0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000bffdffff] usable [    0.000000] BIOS-e820: [mem 0x00000000bffe0000-0x00000000bfffffff] reserved [    0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved [    0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved [    0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000023fffffff] usable [    0.000000] printk: debug: ignoring loglevel setting. [    0.000000] printk: bootconsole [earlyser0] enabled [    0.000000] NX (Execute Disable) protection: active [    0.000000] SMBIOS 2.8 present. [    0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [    0.000000] Hypervisor detected: KVM [    0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00 [    0.000002] kvm-clock: cpu 0, msr 7601001, primary cpu clock [    0.000002] kvm-clock: using sched offset of 2661499940 cycles [    0.000603] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns [    0.002261] tsc: Detected 3407.998 MHz processor [    0.005351] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved [    0.005986] e820: remove [mem 0x000a0000-0x000fffff] usable [    0.006535] last_pfn = 0x240000 max_arch_pfn = 0x400000000 [    0.007091] MTRR default type: write-back [    0.007477] MTRR fixed ranges enabled: [    0.007845]   00000-9FFFF write-back [    0.008191]   A0000-BFFFF uncachable [    0.008536]   C0000-FFFFF write-protect [    0.008906] MTRR variable ranges enabled: [    0.009293]   0 base 00C0000000 mask FFC0000000 uncachable [    0.009818]   1 disabled [    0.010064]   2 disabled [    0.010314]   3 disabled [    0.010561]   4 disabled [    0.010822]   5 disabled [    0.011072]   6 disabled [    0.011325]   7 disabled [    0.011602] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP UC- WT [    0.012313] last_pfn = 0xbffe0 max_arch_pfn = 0x400000000 [    0.013294] check: Scanning 1 areas for low memory corruption [    0.013898] BRK [0x07801000, 0x07801fff] PGTABLE [    0.014358] BRK [0x07802000, 0x07802fff] PGTABLE [    0.014822] BRK [0x07803000, 0x07803fff] PGTABLE [    0.015626] BRK [0x07804000, 0x07804fff] PGTABLE [    0.016099] BRK [0x07805000, 0x07805fff] PGTABLE [    0.016773] BRK [0x07806000, 0x07806fff] PGTABLE [    0.106782] ACPI: Early table checksum verification disabled [    0.107352] ACPI: RSDP 0x00000000000F5850 000014 (v00 BOCHS ) [    0.107949] ACPI: RSDT 0x00000000BFFE15C9 000030 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001) [    0.108766] ACPI: FACP 0x00000000BFFE149D 000074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001) [    0.109649] ACPI: DSDT 0x00000000BFFE0040 00145D (v01 BOCHS BXPCDSDT 00000001 BXPC 00000001) lizhijian@shao2-debian:~/1787$ > Weird, what you are getting is the following warning from lock torture: warning from lock torture could be not related to this commit in this case. Thanks Zhijian