From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EEA02C433E1 for ; Tue, 2 Jun 2020 12:18:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B21CC20663 for ; Tue, 2 Jun 2020 12:18:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B21CC20663 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 57D25280074; Tue, 2 Jun 2020 08:18:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 506588E0006; Tue, 2 Jun 2020 08:18:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3CE31280074; Tue, 2 Jun 2020 08:18:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0042.hostedemail.com [216.40.44.42]) by kanga.kvack.org (Postfix) with ESMTP id 1E5D08E0006 for ; Tue, 2 Jun 2020 08:18:32 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id CFBD7824999B for ; Tue, 2 Jun 2020 12:18:31 +0000 (UTC) X-FDA: 76884174822.20.order48_2d48bf1f06412 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 9FA0D180C08E1 for ; Tue, 2 Jun 2020 12:18:31 +0000 (UTC) X-HE-Tag: order48_2d48bf1f06412 X-Filterd-Recvd-Size: 8307 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf22.hostedemail.com (Postfix) with ESMTP for ; Tue, 2 Jun 2020 12:18:31 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 77F39AE72; Tue, 2 Jun 2020 12:18:31 +0000 (UTC) Subject: Re: [LKP] Re: 28307d938f ("percpu: make pcpu_alloc() aware of current gfp .."): BUG: kernel reboot-without-warning in boot stage To: Li Zhijian , 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: Filipe Manana Message-ID: <0405917f-dc4f-f32c-0aeb-043742fc4d6e@suse.com> Date: Tue, 2 Jun 2020 13:18:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US X-Rspamd-Queue-Id: 9FA0D180C08E1 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 02/06/20 05:37, Li Zhijian wrote: > Hi Filipe, >=20 > LKP checked blow dmesg as the indicator in this problem >=20 >>> [=C2=A0=C2=A0=C2=A0 0.144174] RAMDISK: [mem 0x7fa2e000-0x7fffffff] >>> [=C2=A0=C2=A0=C2=A0 0.144559] ACPI: Early table checksum verification= disabled >>> [=C2=A0=C2=A0=C2=A0 0.144985] ACPI: RSDP 0x00000000000F5850 000014 (v= 00 BOCHS ) >>> [=C2=A0=C2=A0=C2=A0 0.145424] ACPI: RSDT 0x00000000BFFE15C9 000030 (v= 01 BOCHS=C2=A0 >>> BXPCRSDT 00000001 BXPC 00000001) >>> [=C2=A0=C2=A0=C2=A0 0.146051] ACPI: FACP 0x00000000BFFE149D 000074 (v= 01 BOCHS=C2=A0 >>> BXPCFACP 00000001 BXPC 00000001) >>> BUG: kernel reboot-without-warning in boot stage >>> >=20 > And i have reproduced it with script in attachment. this issue is gone > when i reverted this commit 28307d938f >=20 > 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 Odd. Here I tested with: $ gcc --version gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 Copyright (C) 2016 Free Software Foundation, Inc. >=20 > :~/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=3Dnet0 > -netdev user,id=3Dnet0,hostfwd=3Dtcp::32032-:22 -boot order=3Dnc -no-re= boot > -watchdog i6300esb -watchdog-action debug -rtc base=3Dlocaltime -serial > stdio -display none -monitor null -append root=3D/dev/ram0 > hung_task_panic=3D1 debug apic=3Ddebug sysrq_always_enabled > rcupdate.rcu_cpu_stall_timeout=3D100 net.ifnames=3D0 printk.devkmsg=3Do= n > 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 earlyprintk=3DttyS0,115200 > console=3DttyS0,115200 vga=3Dnormal rw rcuperf.shutdown=3D0 watchdog_th= resh=3D60 > 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 >=20 > Decompressing Linux... Parsing ELF... done. > Booting the kernel. > [=C2=A0=C2=A0=C2=A0 0.000000] Linux version 5.7.0-rc4-00168-g28307d938f= b2 > (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:5= 9 > CST 2020 > [=C2=A0=C2=A0=C2=A0 0.000000] Command line: root=3D/dev/ram0 hung_task_= panic=3D1 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=3D= tty0 > earlyprintk=3DttyS0,115200 console=3DttyS0,115200 vga=3Dnormal rw > rcuperf.shutdown=3D0 watchdog_thresh=3D60 > [=C2=A0=C2=A0=C2=A0 0.000000] x86/fpu: Supporting XSAVE feature 0x001: = 'x87 floating > point registers' > [=C2=A0=C2=A0=C2=A0 0.000000] x86/fpu: Supporting XSAVE feature 0x002: = 'SSE registers' > [=C2=A0=C2=A0=C2=A0 0.000000] x86/fpu: Supporting XSAVE feature 0x004: = 'AVX registers' > [=C2=A0=C2=A0=C2=A0 0.000000] x86/fpu: xstate_offset[2]:=C2=A0 576, xst= ate_sizes[2]: 256 > [=C2=A0=C2=A0=C2=A0 0.000000] x86/fpu: Enabled xstate features 0x7, con= text size is 832 > bytes, using 'standard' format. > [=C2=A0=C2=A0=C2=A0 0.000000] BIOS-provided physical RAM map: > [=C2=A0=C2=A0=C2=A0 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000= 00000009fbff] > usable > [=C2=A0=C2=A0=C2=A0 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x0000= 00000009ffff] > reserved > [=C2=A0=C2=A0=C2=A0 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x0000= 0000000fffff] > reserved > [=C2=A0=C2=A0=C2=A0 0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000= 0000bffdffff] > usable > [=C2=A0=C2=A0=C2=A0 0.000000] BIOS-e820: [mem 0x00000000bffe0000-0x0000= 0000bfffffff] > reserved > [=C2=A0=C2=A0=C2=A0 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x0000= 0000feffffff] > reserved > [=C2=A0=C2=A0=C2=A0 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x0000= 0000ffffffff] > reserved > [=C2=A0=C2=A0=C2=A0 0.000000] BIOS-e820: [mem 0x0000000100000000-0x0000= 00023fffffff] > usable > [=C2=A0=C2=A0=C2=A0 0.000000] printk: debug: ignoring loglevel setting. > [=C2=A0=C2=A0=C2=A0 0.000000] printk: bootconsole [earlyser0] enabled > [=C2=A0=C2=A0=C2=A0 0.000000] NX (Execute Disable) protection: active > [=C2=A0=C2=A0=C2=A0 0.000000] SMBIOS 2.8 present. > [=C2=A0=C2=A0=C2=A0 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 199= 6), BIOS > 1.12.0-1 04/01/2014 > [=C2=A0=C2=A0=C2=A0 0.000000] Hypervisor detected: KVM > [=C2=A0=C2=A0=C2=A0 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d= 00 > [=C2=A0=C2=A0=C2=A0 0.000002] kvm-clock: cpu 0, msr 7601001, primary cp= u clock > [=C2=A0=C2=A0=C2=A0 0.000002] kvm-clock: using sched offset of 26614999= 40 cycles > [=C2=A0=C2=A0=C2=A0 0.000603] clocksource: kvm-clock: mask: 0xfffffffff= fffffff > max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns > [=C2=A0=C2=A0=C2=A0 0.002261] tsc: Detected 3407.998 MHz processor > [=C2=A0=C2=A0=C2=A0 0.005351] e820: update [mem 0x00000000-0x00000fff] = usable =3D=3D> reserved > [=C2=A0=C2=A0=C2=A0 0.005986] e820: remove [mem 0x000a0000-0x000fffff] = usable > [=C2=A0=C2=A0=C2=A0 0.006535] last_pfn =3D 0x240000 max_arch_pfn =3D 0x= 400000000 > [=C2=A0=C2=A0=C2=A0 0.007091] MTRR default type: write-back > [=C2=A0=C2=A0=C2=A0 0.007477] MTRR fixed ranges enabled: > [=C2=A0=C2=A0=C2=A0 0.007845]=C2=A0=C2=A0 00000-9FFFF write-back > [=C2=A0=C2=A0=C2=A0 0.008191]=C2=A0=C2=A0 A0000-BFFFF uncachable > [=C2=A0=C2=A0=C2=A0 0.008536]=C2=A0=C2=A0 C0000-FFFFF write-protect > [=C2=A0=C2=A0=C2=A0 0.008906] MTRR variable ranges enabled: > [=C2=A0=C2=A0=C2=A0 0.009293]=C2=A0=C2=A0 0 base 00C0000000 mask FFC000= 0000 uncachable > [=C2=A0=C2=A0=C2=A0 0.009818]=C2=A0=C2=A0 1 disabled > [=C2=A0=C2=A0=C2=A0 0.010064]=C2=A0=C2=A0 2 disabled > [=C2=A0=C2=A0=C2=A0 0.010314]=C2=A0=C2=A0 3 disabled > [=C2=A0=C2=A0=C2=A0 0.010561]=C2=A0=C2=A0 4 disabled > [=C2=A0=C2=A0=C2=A0 0.010822]=C2=A0=C2=A0 5 disabled > [=C2=A0=C2=A0=C2=A0 0.011072]=C2=A0=C2=A0 6 disabled > [=C2=A0=C2=A0=C2=A0 0.011325]=C2=A0=C2=A0 7 disabled > [=C2=A0=C2=A0=C2=A0 0.011602] x86/PAT: Configuration [0-7]: WB=C2=A0 WC= =C2=A0 UC- UC=C2=A0 WB=C2=A0 WP UC- WT > [=C2=A0=C2=A0=C2=A0 0.012313] last_pfn =3D 0xbffe0 max_arch_pfn =3D 0x4= 00000000 > [=C2=A0=C2=A0=C2=A0 0.013294] check: Scanning 1 areas for low memory co= rruption > [=C2=A0=C2=A0=C2=A0 0.013898] BRK [0x07801000, 0x07801fff] PGTABLE > [=C2=A0=C2=A0=C2=A0 0.014358] BRK [0x07802000, 0x07802fff] PGTABLE > [=C2=A0=C2=A0=C2=A0 0.014822] BRK [0x07803000, 0x07803fff] PGTABLE > [=C2=A0=C2=A0=C2=A0 0.015626] BRK [0x07804000, 0x07804fff] PGTABLE > [=C2=A0=C2=A0=C2=A0 0.016099] BRK [0x07805000, 0x07805fff] PGTABLE > [=C2=A0=C2=A0=C2=A0 0.016773] BRK [0x07806000, 0x07806fff] PGTABLE > [=C2=A0=C2=A0=C2=A0 0.106782] ACPI: Early table checksum verification d= isabled > [=C2=A0=C2=A0=C2=A0 0.107352] ACPI: RSDP 0x00000000000F5850 000014 (v00= BOCHS ) > [=C2=A0=C2=A0=C2=A0 0.107949] ACPI: RSDT 0x00000000BFFE15C9 000030 (v01= BOCHS BXPCRSDT > 00000001 BXPC 00000001) > [=C2=A0=C2=A0=C2=A0 0.108766] ACPI: FACP 0x00000000BFFE149D 000074 (v01= BOCHS BXPCFACP > 00000001 BXPC 00000001) > [=C2=A0=C2=A0=C2=A0 0.109649] ACPI: DSDT 0x00000000BFFE0040 00145D (v01= BOCHS BXPCDSDT > 00000001 BXPC 00000001) > lizhijian@shao2-debian:~/1787$ >=20 >=20 >=20 >> Weird, what you are getting is the following warning from lock torture= : >=20 > warning from lock torture could be not related to this commit in this c= ase. >=20 >=20 > Thanks > Zhijian >=20 >=20