[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20191023002558.GC12647@shao2-debian>
Date: Wed, 23 Oct 2019 08:25:58 +0800
From: kernel test robot <lkp@...el.com>
To: Mel Gorman <mgorman@...hsingularity.net>
Cc: Stephen Rothwell <sfr@...b.auug.org.au>,
Matt Fleming <matt@...eblueprint.co.uk>,
Michal Hocko <mhocko@...e.com>,
Vlastimil Babka <vbabka@...e.cz>,
Thomas Gleixner <tglx@...utronix.de>,
Borislav Petkov <bp@...en8.de>,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org
Subject: [mm, meminit] ba8514481c:
BUG:sleeping_function_called_from_invalid_context_at_kernel/locking/mutex.c
FYI, we noticed the following commit (built with gcc-7):
commit: ba8514481ccdb50a60f5e26a62bedcdc3c1ca61c ("mm, meminit: recalculate pcpu batch and high limits after init completes")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master
in testcase: boot
on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+-----------------------------------------------------------------------------+------------+------------+
| | 8434a0af25 | ba8514481c |
+-----------------------------------------------------------------------------+------------+------------+
| boot_successes | 12 | 0 |
| boot_failures | 0 | 22 |
| BUG:sleeping_function_called_from_invalid_context_at_kernel/locking/mutex.c | 0 | 22 |
+-----------------------------------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <lkp@...el.com>
[ 0.713593] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:281
[ 0.713593] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 19, name: pgdatinit0
[ 0.713593] CPU: 1 PID: 19 Comm: pgdatinit0 Not tainted 5.4.0-rc3-00176-gba8514481ccdb #1
[ 0.713593] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[ 0.713593] Call Trace:
[ 0.713593] dump_stack+0x5c/0x7b
[ 0.713593] ___might_sleep+0x102/0x120
[ 0.713593] mutex_lock+0x1c/0x40
[ 0.713593] zone_pcp_update+0x1d/0x59
[ 0.713593] deferred_init_memmap+0x143/0x1b3
[ 0.713593] ? alloc_large_system_hash+0x26a/0x26a
[ 0.713593] kthread+0x11e/0x140
[ 0.713593] ? kthread_park+0x90/0x90
[ 0.713593] ret_from_fork+0x35/0x40
[ 0.767610] node 0 initialised, 1181418 pages in 55ms
[ 0.769875] devtmpfs: initialized
[ 0.770704] x86/mm: Memory block size: 128MB
[ 0.773892] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.774604] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.776243] pinctrl core: initialized pinctrl subsystem
[ 0.776743] PM: RTC time: 00:49:11, date: 2019-10-23
[ 0.777812] NET: Registered protocol family 16
[ 0.778829] audit: initializing netlink subsys (disabled)
[ 0.779625] audit: type=2000 audit(1571762951.739:1): state=initialized audit_enabled=0 res=1
[ 0.783611] cpuidle: using governor menu
[ 0.784814] ACPI: bus type PCI registered
[ 0.785598] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 0.786748] PCI: Using configuration type 1 for base access
[ 0.789646] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.792690] ACPI: Added _OSI(Module Device)
[ 0.793602] ACPI: Added _OSI(Processor Device)
[ 0.794597] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.795625] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.796626] ACPI: Added _OSI(Linux-Dell-Video)
[ 0.797613] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[ 0.798597] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[ 0.800205] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.801818] ACPI: Interpreter enabled
[ 0.802609] ACPI: (supports S0 S3 S4 S5)
[ 0.803598] ACPI: Using IOAPIC for interrupt routing
[ 0.804612] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.805709] ACPI: Enabled 3 GPEs in block 00 to 0F
[ 0.808855] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 0.809601] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI HPX-Type3]
[ 0.810606] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
[ 0.811839] acpiphp: Slot [3] registered
[ 0.812622] acpiphp: Slot [4] registered
[ 0.813636] acpiphp: Slot [5] registered
[ 0.814619] acpiphp: Slot [6] registered
[ 0.815617] acpiphp: Slot [7] registered
[ 0.816616] acpiphp: Slot [8] registered
[ 0.817617] acpiphp: Slot [9] registered
[ 0.818608] acpiphp: Slot [10] registered
[ 0.819627] acpiphp: Slot [11] registered
[ 0.820622] acpiphp: Slot [12] registered
[ 0.821617] acpiphp: Slot [13] registered
[ 0.822616] acpiphp: Slot [14] registered
[ 0.823616] acpiphp: Slot [15] registered
[ 0.824619] acpiphp: Slot [16] registered
[ 0.825616] acpiphp: Slot [17] registered
[ 0.826616] acpiphp: Slot [18] registered
[ 0.827617] acpiphp: Slot [19] registered
[ 0.828619] acpiphp: Slot [20] registered
[ 0.829616] acpiphp: Slot [21] registered
[ 0.830617] acpiphp: Slot [22] registered
[ 0.831631] acpiphp: Slot [23] registered
[ 0.832618] acpiphp: Slot [24] registered
[ 0.833615] acpiphp: Slot [25] registered
[ 0.834614] acpiphp: Slot [26] registered
[ 0.835619] acpiphp: Slot [27] registered
[ 0.836619] acpiphp: Slot [28] registered
[ 0.837617] acpiphp: Slot [29] registered
[ 0.838616] acpiphp: Slot [30] registered
[ 0.839618] acpiphp: Slot [31] registered
[ 0.840611] PCI host bridge to bus 0000:00
[ 0.841598] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.842597] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 0.843597] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[ 0.844597] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xfebfffff window]
[ 0.845597] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.846645] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
[ 0.848149] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
[ 0.849338] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180
[ 0.853169] pci 0000:00:01.1: reg 0x20: [io 0xc080-0xc08f]
[ 0.855628] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
[ 0.856598] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
[ 0.857597] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
[ 0.858597] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
[ 0.859819] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000
[ 0.861184] pci 0000:00:01.3: quirk: [io 0x0600-0x063f] claimed by PIIX4 ACPI
[ 0.861609] pci 0000:00:01.3: quirk: [io 0x0700-0x070f] claimed by PIIX4 SMB
[ 0.862890] pci 0000:00:02.0: [1234:1111] type 00 class 0x030000
[ 0.864599] pci 0000:00:02.0: reg 0x10: [mem 0xfd000000-0xfdffffff pref]
[ 0.867598] pci 0000:00:02.0: reg 0x18: [mem 0xfebf0000-0xfebf0fff]
[ 0.874599] pci 0000:00:02.0: reg 0x30: [mem 0xfebe0000-0xfebeffff pref]
[ 0.875844] pci 0000:00:03.0: [8086:100e] type 00 class 0x020000
[ 0.877598] pci 0000:00:03.0: reg 0x10: [mem 0xfebc0000-0xfebdffff]
[ 0.879598] pci 0000:00:03.0: reg 0x14: [io 0xc000-0xc03f]
[ 0.885599] pci 0000:00:03.0: reg 0x30: [mem 0xfeb80000-0xfebbffff pref]
[ 0.886901] pci 0000:00:04.0: [1af4:1004] type 00 class 0x010000
[ 0.890447] pci 0000:00:04.0: reg 0x10: [io 0xc040-0xc07f]
To reproduce:
# build kernel
cd linux
cp config-5.4.0-rc3-00176-gba8514481ccdb .config
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email
Thanks,
lkp
View attachment "config-5.4.0-rc3-00176-gba8514481ccdb" of type "text/plain" (200562 bytes)
View attachment "job-script" of type "text/plain" (4683 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (13784 bytes)
Powered by blists - more mailing lists