FYI, we noticed the following commit (built with gcc-7): commit: 5b0883f5c7befe471b807e8fdd1c5db39c724608 ("x86/MCE: Make mce_banks a per-CPU array") https://git.kernel.org/cgit/linux/kernel/git/bp/bp.git rc0+3-ras in testcase: xfstests with following parameters: disk: 4HDD fs: xfs test: xfs-mid2 test-description: xfstests is a regression test suite for xfs and other files ystems. test-url: git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 4G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +----------------------------------------------------------------+------------+------------+ | | 1118159021 | 5b0883f5c7 | +----------------------------------------------------------------+------------+------------+ | boot_successes | 1 | 0 | | boot_failures | 3 | 4 | | BUG:kernel_hang_in_test_stage | 2 | | | BUG:kernel_reboot-without-warning_in_test_stage | 1 | | | BUG:sleeping_function_called_from_invalid_context_at_mm/slab.h | 0 | 4 | +----------------------------------------------------------------+------------+------------+ If you fix the issue, kindly add following tag Reported-by: kernel test robot [ 0.233345] BUG: sleeping function called from invalid context at mm/slab.h:418 [ 0.233345] in_atomic(): 1, irqs_disabled(): 1, pid: 0, name: swapper/1 [ 0.233345] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.1.0-10876-g5b0883f #1 [ 0.233345] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 0.233345] Call Trace: [ 0.233345] dump_stack+0x5c/0x7b [ 0.233345] ___might_sleep+0xf1/0x110 [ 0.233345] kmem_cache_alloc_trace+0x168/0x1d0 [ 0.233345] mcheck_cpu_init+0x2d0/0x3c0 [ 0.233345] identify_cpu+0x3e4/0x590 [ 0.233345] identify_secondary_cpu+0x13/0x80 [ 0.233345] smp_store_cpu_info+0x45/0x50 [ 0.233345] start_secondary+0x80/0x1d0 [ 0.233345] secondary_startup_64+0xb6/0xc0 [ 0.529549] KVM setup async PF for cpu 1 [ 0.530481] kvm-stealtime: cpu 1, msr 13fd2c040 [ 0.531532] smp: Brought up 1 node, 2 CPUs [ 0.532276] smpboot: Max logical packages: 2 [ 0.532528] smpboot: Total of 2 processors activated (9178.43 BogoMIPS) [ 0.536534] node 0 initialised, 152303 pages in 3ms [ 0.538727] devtmpfs: initialized [ 0.539586] x86/mm: Memory block size: 128MB [ 0.540989] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns [ 0.541534] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.543110] pinctrl core: initialized pinctrl subsystem [ 0.543613] PM: RTC time: 21:24:04, date: 2019-05-20 [ 0.544709] NET: Registered protocol family 16 [ 0.545710] audit: initializing netlink subsys (disabled) [ 0.546550] audit: type=2000 audit(1558358644.794:1): state=initialized audit_enabled=0 res=1 [ 0.547529] cpuidle: using governor menu [ 0.548724] ACPI: bus type PCI registered [ 0.549472] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 [ 0.549630] PCI: Using configuration type 1 for base access [ 0.551896] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.554649] ACPI: Added _OSI(Module Device) [ 0.555525] ACPI: Added _OSI(Processor Device) [ 0.556323] ACPI: Added _OSI(3.0 _SCP Extensions) [ 0.556525] ACPI: Added _OSI(Processor Aggregator Device) [ 0.557409] ACPI: Added _OSI(Linux-Dell-Video) [ 0.557528] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio) [ 0.558439] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics) [ 0.559053] ACPI: 1 ACPI AML tables successfully acquired and loaded [ 0.560705] ACPI: Interpreter enabled [ 0.561430] ACPI: (supports S0 S3 S4 S5) [ 0.561526] ACPI: Using IOAPIC for interrupt routing [ 0.562367] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug [ 0.562607] ACPI: Enabled 2 GPEs in block 00 to 0F [ 0.565258] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) [ 0.565528] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI HPX-Type3] [ 0.566532] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge. [ 0.567739] acpiphp: Slot [3] registered [ 0.568453] acpiphp: Slot [4] registered [ 0.568543] acpiphp: Slot [5] registered [ 0.569252] acpiphp: Slot [6] registered [ 0.569539] acpiphp: Slot [7] registered [ 0.570251] acpiphp: Slot [8] registered [ 0.570538] acpiphp: Slot [9] registered [ 0.571254] acpiphp: Slot [10] registered [ 0.571539] acpiphp: Slot [11] registered [ 0.572286] acpiphp: Slot [12] registered [ 0.572537] acpiphp: Slot [13] registered [ 0.573262] acpiphp: Slot [14] registered [ 0.573537] acpiphp: Slot [15] registered [ 0.574293] acpiphp: Slot [16] registered [ 0.574536] acpiphp: Slot [17] registered [ 0.575539] acpiphp: Slot [18] registered [ 0.576261] acpiphp: Slot [19] registered [ 0.576536] acpiphp: Slot [20] registered [ 0.577255] acpiphp: Slot [21] registered [ 0.577537] acpiphp: Slot [22] registered [ 0.578260] acpiphp: Slot [23] registered [ 0.578539] acpiphp: Slot [24] registered [ 0.579258] acpiphp: Slot [25] registered [ 0.579536] acpiphp: Slot [26] registered [ 0.580259] acpiphp: Slot [27] registered [ 0.580536] acpiphp: Slot [28] registered [ 0.581257] acpiphp: Slot [29] registered [ 0.581538] acpiphp: Slot [30] registered [ 0.582260] acpiphp: Slot [31] registered [ 0.582532] PCI host bridge to bus 0000:00 [ 0.583248] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window] [ 0.583525] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window] [ 0.584525] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window] [ 0.585525] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xfebfffff window] [ 0.586525] pci_bus 0000:00: root bus resource [mem 0x140000000-0x1bfffffff window] [ 0.587537] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.588488] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000 [ 0.588883] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100 [ 0.589899] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180 [ 0.593905] pci 0000:00:01.1: reg 0x20: [io 0xc200-0xc20f] [ 0.596877] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7] [ 0.597525] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6] [ 0.598525] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177] [ 0.599525] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376] [ 0.600695] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000 [ 0.601803] pci 0000:00:01.3: quirk: [io 0x0600-0x063f] claimed by PIIX4 ACPI [ 0.602530] pci 0000:00:01.3: quirk: [io 0x0700-0x070f] claimed by PIIX4 SMB [ 0.603685] pci 0000:00:02.0: [1234:1111] type 00 class 0x030000 [ 0.605529] pci 0000:00:02.0: reg 0x10: [mem 0xfd000000-0xfdffffff pref] [ 0.608528] pci 0000:00:02.0: reg 0x18: [mem 0xfebf0000-0xfebf0fff] [ 0.614529] pci 0000:00:02.0: reg 0x30: [mem 0xfebe0000-0xfebeffff pref] To reproduce: # build kernel cd linux cp config-5.1.0-10876-g5b0883f .config make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 prepare make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 modules_prepare make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 SHELL=/bin/bash make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 bzImage git clone https://github.com/intel/lkp-tests.git cd lkp-tests find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz bin/lkp qemu -k -m modules.cgz job-script # job-script is attached in this email Thanks, Rong Chen