[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220228151900.GD1643@xsang-OptiPlex-9020>
Date: Mon, 28 Feb 2022 23:19:00 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Oliver Glitta <glittao@...il.com>
Cc: lkp@...ts.01.org, lkp@...el.com,
LKML <linux-kernel@...r.kernel.org>
Subject: [mm/slub] ba10d4b466:
BUG:sleeping_function_called_from_invalid_context_at_mm/page_alloc.c
Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: ba10d4b46655ce4839061a815cac33245c2ebcc2 ("mm/slub: use stackdepot to save stack trace in objects")
https://git.kernel.org/cgit/linux/kernel/git/vbabka/linux.git slub-stackdepot-v1
in testcase: boot
on test machine: qemu-system-x86_64 -enable-kvm -cpu Icelake-Server -smp 4 -m 16G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>
[ 3.221599][ T1] BUG: sleeping function called from invalid context at mm/page_alloc.c:5164
[ 3.222568][ T1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1, name: swapper
[ 3.223483][ T1] preempt_count: 1, expected: 0
[ 3.224023][ T1] no locks held by swapper/1.
[ 3.224540][ T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.17.0-rc1-00002-gba10d4b46655 #1 25fb037e45765c0b5aa6dd8ac5af370d377555f5
[ 3.225961][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[ 3.226970][ T1] Call Trace:
[ 3.227451][ T1] dump_stack_lvl (lib/dump_stack.c:108)
[ 3.227964][ T1] dump_stack (lib/dump_stack.c:114)
[ 3.228415][ T1] __might_resched.cold (kernel/sched/core.c:9584)
[ 3.228971][ T1] __might_sleep (kernel/sched/core.c:9513 (discriminator 14))
[ 3.229486][ T1] __alloc_pages (mm/page_alloc.c:5164 mm/page_alloc.c:5378)
[ 3.230000][ T1] __stack_depot_save (lib/stackdepot.c:396)
[ 3.230562][ T1] stack_depot_save (lib/stackdepot.c:453)
[ 3.231073][ T1] set_track (mm/slub.c:743)
[ 3.231451][ T1] ? __slab_alloc+0x10/0x20
[ 3.232133][ T1] ? kmem_cache_alloc (mm/slub.c:3193 mm/slub.c:3235 mm/slub.c:3240)
[ 3.232688][ T1] ? __kernfs_new_node (include/linux/slab.h:705 fs/kernfs/dir.c:585)
[ 3.233252][ T1] ? kernfs_new_node (fs/kernfs/dir.c:649)
[ 3.233798][ T1] ? __kernfs_create_file (fs/kernfs/file.c:989)
[ 3.234523][ T1] ? sysfs_add_file_mode_ns (fs/sysfs/file.c:296)
[ 3.235454][ T1] ? sysfs_create_file_ns (fs/sysfs/file.c:355)
[ 3.236324][ T1] ? bus_create_file (include/linux/sysfs.h:607 drivers/base/bus.c:135)
[ 3.237188][ T1] ? bus_register (drivers/base/bus.c:559 drivers/base/bus.c:831)
[ 3.238047][ T1] ? subsys_register (drivers/base/bus.c:1083)
[ 3.238584][ T1] ? subsys_system_register (drivers/base/bus.c:1140)
[ 3.239451][ T1] ? cpu_dev_init (drivers/base/cpu.c:608)
[ 3.239959][ T1] ? driver_init (drivers/base/init.c:38)
[ 3.240445][ T1] ? kernel_init_freeable (init/main.c:1406 init/main.c:1613)
[ 3.241027][ T1] ? kernel_init (init/main.c:1504)
[ 3.241620][ T1] ? ret_from_fork (arch/x86/entry/entry_32.S:772)
[ 3.242130][ T1] alloc_debug_processing (mm/slub.c:1316)
[ 3.242711][ T1] ? __kernfs_new_node (include/linux/slab.h:705 fs/kernfs/dir.c:585)
[ 3.243263][ T1] ___slab_alloc+0x7a7/0xa30
[ 3.243451][ T1] ? __kernfs_new_node (include/linux/slab.h:705 fs/kernfs/dir.c:585)
[ 3.244007][ T1] ? sched_clock_cpu (kernel/sched/clock.c:382)
[ 3.244535][ T1] ? __kernfs_new_node (include/linux/slab.h:705 fs/kernfs/dir.c:585)
[ 3.245111][ T1] __slab_alloc+0x10/0x20
[ 3.245765][ T1] kmem_cache_alloc (mm/slub.c:3193 mm/slub.c:3235 mm/slub.c:3240)
[ 3.246302][ T1] ? __kernfs_new_node (include/linux/slab.h:705 fs/kernfs/dir.c:585)
[ 3.246860][ T1] __kernfs_new_node (include/linux/slab.h:705 fs/kernfs/dir.c:585)
[ 3.247451][ T1] ? kernfs_activate (fs/kernfs/dir.c:1324)
[ 3.247979][ T1] ? lock_release (kernel/locking/lockdep.c:321 kernel/locking/lockdep.c:5321 kernel/locking/lockdep.c:5659)
[ 3.248504][ T1] ? up_write (kernel/locking/rwsem.c:1309 kernel/locking/rwsem.c:1567)
[ 3.249083][ T1] kernfs_new_node (fs/kernfs/dir.c:649)
[ 3.249587][ T1] __kernfs_create_file (fs/kernfs/file.c:989)
[ 3.250144][ T1] sysfs_add_file_mode_ns (fs/sysfs/file.c:296)
[ 3.250723][ T1] sysfs_create_file_ns (fs/sysfs/file.c:355)
[ 3.251451][ T1] bus_create_file (include/linux/sysfs.h:607 drivers/base/bus.c:135)
[ 3.251962][ T1] bus_register (drivers/base/bus.c:559 drivers/base/bus.c:831)
[ 3.252458][ T1] subsys_register (drivers/base/bus.c:1083)
[ 3.252960][ T1] subsys_system_register (drivers/base/bus.c:1140)
[ 3.253552][ T1] cpu_dev_init (drivers/base/cpu.c:608)
[ 3.254029][ T1] driver_init (drivers/base/init.c:38)
[ 3.254500][ T1] kernel_init_freeable (init/main.c:1406 init/main.c:1613)
[ 3.255451][ T1] ? rest_init (init/main.c:1494)
[ 3.255926][ T1] kernel_init (init/main.c:1504)
[ 3.256402][ T1] ret_from_fork (arch/x86/entry/entry_32.S:772)
[ 3.256965][ T10] Callback from call_rcu_tasks_trace() invoked.
[ 3.258372][ T1] version magic: 0x4139332a
[ 3.261460][ T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 3.262648][ T1] futex hash table entries: 256 (order: 1, 14336 bytes, linear)
[ 3.263896][ T1] prandom: seed boundary self test passed
[ 3.265307][ T1] prandom: 100 self tests passed
[ 3.268518][ T1] prandom32: self test passed (less than 6 bits correlated)
[ 3.269330][ T1] pinctrl core: initialized pinctrl subsystem
[ 3.271001][ T1] regulator-dummy: no parameters, enabled
[ 3.272379][ T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 3.276474][ T1] thermal_sys: Registered thermal governor 'fair_share'
[ 3.276479][ T1] thermal_sys: Registered thermal governor 'bang_bang'
[ 3.277252][ T1] thermal_sys: Registered thermal governor 'step_wise'
[ 3.278030][ T1] thermal_sys: Registered thermal governor 'user_space'
[ 3.278885][ T1] EISA bus registered
[ 3.279899][ T1] cpuidle: using governor ladder
[ 3.280455][ T1] cpuidle: using governor menu
[ 3.282429][ T1] PCI: PCI BIOS area is rw and x. Use pci=nobios if you want it NX.
[ 3.283452][ T1] PCI: PCI BIOS revision 2.10 entry at 0xfd1bc, last bus=0
[ 3.284246][ T1] PCI: Using configuration type 1 for base access
[ 3.315570][ T9] Callback from call_rcu_tasks_rude() invoked.
[ 3.317303][ T1] cryptd: max_cpu_qlen set to 1000
[ 3.319314][ T1] ACPI: Added _OSI(Module Device)
[ 3.319452][ T1] ACPI: Added _OSI(Processor Device)
[ 3.320039][ T1] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 3.320737][ T1] ACPI: Added _OSI(Processor Aggregator Device)
[ 3.321862][ T1] ACPI: Added _OSI(Linux-Dell-Video)
[ 3.322475][ T1] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[ 3.323477][ T1] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[ 3.347453][ T1] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 3.355907][ T1] ACPI: Interpreter enabled
[ 3.356554][ T1] ACPI: PM: (supports S0 S3 S5)
[ 3.357106][ T1] ACPI: Using PIC for interrupt routing
[ 3.357885][ T1] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 3.360665][ T1] ACPI: Enabled 2 GPEs in block 00 to 0F
[ 3.415485][ T8] Callback from call_rcu_tasks() invoked.
[ 3.419676][ T1] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 3.420506][ T1] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments HPX-Type3]
[ 3.421444][ T1] acpi PNP0A03:00: PCIe port services disabled; not requesting _OSC control
[ 3.422525][ T1] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
[ 3.424010][ T1] PCI host bridge to bus 0000:00
[ 3.424572][ T1] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 3.425442][ T1] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 3.426287][ T1] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[ 3.427456][ T1] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xfebfffff window]
[ 3.428378][ T1] pci_bus 0000:00: root bus resource [mem 0x440000000-0x4bfffffff window]
[ 3.429354][ T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 3.430252][ T1] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
[ 3.432716][ T1] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
[ 3.434723][ T1] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180
[ 3.439047][ T1] pci 0000:00:01.1: reg 0x20: [io 0xc040-0xc04f]
[ 3.441009][ T1] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
[ 3.441899][ T1] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
[ 3.442709][ T1] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
[ 3.443451][ T1] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
[ 3.444748][ T1] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000
[ 3.446517][ T1] pci 0000:00:01.3: quirk: [io 0x0600-0x063f] claimed by PIIX4 ACPI
[ 3.447460][ T1] pci 0000:00:01.3: quirk: [io 0x0700-0x070f] claimed by PIIX4 SMB
[ 3.449315][ T1] pci 0000:00:02.0: [1234:1111] type 00 class 0x030000
[ 3.452102][ T1] pci 0000:00:02.0: reg 0x10: [mem 0xfd000000-0xfdffffff pref]
[ 3.455458][ T1] pci 0000:00:02.0: reg 0x18: [mem 0xfebf0000-0xfebf0fff]
[ 3.462033][ T1] pci 0000:00:02.0: reg 0x30: [mem 0xfebe0000-0xfebeffff pref]
[ 3.464240][ T1] pci 0000:00:03.0: [8086:100e] type 00 class 0x020000
[ 3.466435][ T1] pci 0000:00:03.0: reg 0x10: [mem 0xfebc0000-0xfebdffff]
[ 3.468144][ T1] pci 0000:00:03.0: reg 0x14: [io 0xc000-0xc03f]
[ 3.474352][ T1] pci 0000:00:03.0: reg 0x30: [mem 0xfeb80000-0xfebbffff pref]
[ 3.476395][ T1] pci 0000:00:04.0: [8086:25ab] type 00 class 0x088000
[ 3.477767][ T1] pci 0000:00:04.0: reg 0x10: [mem 0xfebf1000-0xfebf100f]
[ 3.482779][ T1] pci_bus 0000:00: on NUMA node 0
[ 3.489518][ T1] ACPI: PCI: Interrupt link LNKA configured for IRQ 10
[ 3.491898][ T1] ACPI: PCI: Interrupt link LNKB configured for IRQ 10
[ 3.493813][ T1] ACPI: PCI: Interrupt link LNKC configured for IRQ 11
[ 3.495734][ T1] ACPI: PCI: Interrupt link LNKD configured for IRQ 11
[ 3.496992][ T1] ACPI: PCI: Interrupt link LNKS configured for IRQ 9
[ 3.503271][ T1] pci 0000:00:02.0: vgaarb: setting as boot VGA device
[ 3.503442][ T1] pci 0000:00:02.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[ 3.503454][ T1] pci 0000:00:02.0: vgaarb: bridge control possible
[ 3.504181][ T1] vgaarb: loaded
[ 3.508615][ T1] pps_core: LinuxPPS API ver. 1 registered
[ 3.509269][ T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@...ux.it>
[ 3.511195][ T1] FPGA manager framework
[ 3.512014][ T1] Advanced Linux Sound Architecture Driver Initialized.
[ 3.514031][ T1] PCI: Using ACPI for IRQ routing
[ 3.514604][ T1] PCI: pci_cache_line_size set to 64 bytes
[ 3.515545][ T1] e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
[ 3.516340][ T1] e820: reserve RAM buffer [mem 0xbffdf000-0xbfffffff]
[ 3.518469][ T1] clocksource: Switched to clocksource kvm-clock
[ 3.775596][ T1] VFS: Disk quotas dquot_6.6.0
[ 3.776288][ T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 3.777411][ T1] FS-Cache: Loaded
[ 3.778112][ T1] pnp: PnP ACPI init
[ 3.780104][ T1] pnp 00:03: [dma 2]
[ 3.785160][ T1] pnp: PnP ACPI: found 7 devices
To reproduce:
# build kernel
cd linux
cp config-5.17.0-rc1-00002-gba10d4b46655 .config
make HOSTCC=gcc-9 CC=gcc-9 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules
make HOSTCC=gcc-9 CC=gcc-9 ARCH=i386 INSTALL_MOD_PATH=<mod-install-dir> modules_install
cd <mod-install-dir>
find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email
# if come across any failure that blocks the test,
# please remove ~/.lkp and /lkp dir to run from a clean state.
---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corporation
Thanks,
Oliver Sang
View attachment "config-5.17.0-rc1-00002-gba10d4b46655" of type "text/plain" (124875 bytes)
View attachment "job-script" of type "text/plain" (4672 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (18080 bytes)
Powered by blists - more mailing lists