[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210626150713.GB9747@xsang-OptiPlex-9020>
Date: Sat, 26 Jun 2021 23:07:13 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Sean Nyekjaer <sean@...nix.com>
Cc: 0day robot <lkp@...el.com>, LKML <linux-kernel@...r.kernel.org>,
lkp@...ts.01.org, Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Sean Nyekjaer <sean@...nix.com>, linux-clk@...r.kernel.org
Subject: [clk] b3f27bce16: kernel_BUG_at_lib/list_debug.c
Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: b3f27bce1653cb3e5549e6a4ba293cb148e7336a ("[PATCH] clk: fix possible circular locking in clk_notifier_register()")
url: https://github.com/0day-ci/linux/commits/Sean-Nyekjaer/clk-fix-possible-circular-locking-in-clk_notifier_register/20210616-233417
base: https://git.kernel.org/cgit/linux/kernel/git/clk/linux.git clk-next
in testcase: kernel-selftests
version: kernel-selftests-x86_64-f8879e85-1_20210621
with following parameters:
group: sgx
ucode: 0xde
test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt
on test machine: 16 threads 1 sockets Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz with 32G memory
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>
[ 5.484190] kernel BUG at lib/list_debug.c:29!
[ 5.488680] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[ 5.489676] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.13.0-rc1-00059-gb3f27bce1653 #1
[ 5.489676] Hardware name: Intel Corporation Mehlow UP Server Platform/Moss Beach Server, BIOS CNLSE2R1.R00.X188.B13.1903250419 03/25/2019
[ 5.489676] RIP: 0010:__list_add_valid.cold (lib/list_debug.c:29 (discriminator 3))
[ 5.489676] Code: 9f ec 81 ff 4c 89 c1 48 c7 c7 18 a8 82 82 e8 1d e0 fe ff 0f 0b 48 89 f2 4c 89 c1 48 89 fe 48 c7 c7 c8 a8 82 82 e8 06 e0 fe ff <0f> 0b 48 89 d1 4c 89 c6 4c 89 ca 48 c7 c7 70 a8 82 82 e8 ef df fe
All code
========
0: 9f lahf
1: ec in (%dx),%al
2: 81 ff 4c 89 c1 48 cmp $0x48c1894c,%edi
8: c7 c7 18 a8 82 82 mov $0x8282a818,%edi
e: e8 1d e0 fe ff callq 0xfffffffffffee030
13: 0f 0b ud2
15: 48 89 f2 mov %rsi,%rdx
18: 4c 89 c1 mov %r8,%rcx
1b: 48 89 fe mov %rdi,%rsi
1e: 48 c7 c7 c8 a8 82 82 mov $0xffffffff8282a8c8,%rdi
25: e8 06 e0 fe ff callq 0xfffffffffffee030
2a:* 0f 0b ud2 <-- trapping instruction
2c: 48 89 d1 mov %rdx,%rcx
2f: 4c 89 c6 mov %r8,%rsi
32: 4c 89 ca mov %r9,%rdx
35: 48 c7 c7 70 a8 82 82 mov $0xffffffff8282a870,%rdi
3c: e8 .byte 0xe8
3d: ef out %eax,(%dx)
3e: df fe (bad)
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 48 89 d1 mov %rdx,%rcx
5: 4c 89 c6 mov %r8,%rsi
8: 4c 89 ca mov %r9,%rdx
b: 48 c7 c7 70 a8 82 82 mov $0xffffffff8282a870,%rdi
12: e8 .byte 0xe8
13: ef out %eax,(%dx)
14: df fe (bad)
[ 5.489676] RSP: 0000:ffffc9000004b570 EFLAGS: 00010246
[ 5.489676] RAX: 0000000000000058 RBX: ffffffff835a3db0 RCX: 0000000000000000
[ 5.489676] RDX: 0000000000000000 RSI: ffffffff8122f88f RDI: ffffffff8122f88f
[ 5.489676] RBP: ffff888101e25de0 R08: 0000000000000001 R09: 0000000000000001
[ 5.489676] R10: 0000000000000001 R11: 0000000000000001 R12: ffffffff835a3db8
[ 5.489676] R13: ffff888109b08558 R14: ffffffff835b7720 R15: 0000000000000000
[ 5.489676] FS: 0000000000000000(0000) GS:ffff88887d240000(0000) knlGS:0000000000000000
[ 5.489676] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 5.489676] CR2: 0000000000000000 CR3: 000000087ac26001 CR4: 00000000003706e0
[ 5.489676] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 5.489676] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 5.489676] Call Trace:
[ 5.489676] clk_notifier_register (include/linux/list.h:67 include/linux/list.h:86 drivers/clk/clk.c:4361)
[ 5.489676] dw8250_probe (drivers/tty/serial/8250/8250_dw.c:597)
[ 5.489676] ? dw8250_serial_in (drivers/tty/serial/8250/8250_dw.c:212)
[ 5.489676] ? dw8250_check_lcr (drivers/tty/serial/8250/8250_dw.c:202)
[ 5.489676] ? dw8250_runtime_resume (drivers/tty/serial/8250/8250_dw.c:331)
[ 5.489676] ? dw8250_serial_out (drivers/tty/serial/8250/8250_dw.c:361)
[ 5.489676] ? dw8250_handle_irq (drivers/tty/serial/8250/8250_dw.c:319)
[ 5.489676] platform_probe (drivers/base/platform.c:1447)
[ 5.489676] really_probe (drivers/base/dd.c:576)
[ 5.489676] driver_probe_device (drivers/base/dd.c:763)
[ 5.489676] ? driver_allows_async_probing (drivers/base/dd.c:843)
[ 5.489676] bus_for_each_drv (drivers/base/bus.c:431)
[ 5.489676] __device_attach (drivers/base/dd.c:938)
[ 5.489676] bus_probe_device (drivers/base/bus.c:491)
[ 5.489676] device_add (drivers/base/core.c:3326)
[ 5.489676] ? preempt_count_sub (kernel/sched/core.c:4817 kernel/sched/core.c:4814 kernel/sched/core.c:4836)
[ 5.489676] platform_device_add (drivers/base/platform.c:748)
[ 5.489676] mfd_add_devices (drivers/mfd/mfd-core.c:278 drivers/mfd/mfd-core.c:330)
[ 5.489676] ? up_write (kernel/locking/rwsem.c:1311 kernel/locking/rwsem.c:1459)
[ 5.489676] ? __debugfs_create_file (fs/debugfs/inode.c:421)
[ 5.489676] intel_lpss_probe (drivers/mfd/intel-lpss.c:428)
[ 5.489676] intel_lpss_pci_probe (drivers/mfd/intel-lpss-pci.c:44 drivers/mfd/intel-lpss-pci.c:20)
[ 5.489676] local_pci_probe (drivers/pci/pci-driver.c:309)
[ 5.489676] pci_device_probe (drivers/pci/pci-driver.c:366 drivers/pci/pci-driver.c:391 drivers/pci/pci-driver.c:434)
[ 5.489676] really_probe (drivers/base/dd.c:576)
[ 5.489676] driver_probe_device (drivers/base/dd.c:763)
[ 5.489676] device_driver_attach (drivers/base/dd.c:1039)
[ 5.489676] __driver_attach (drivers/base/dd.c:1119)
[ 5.489676] ? device_driver_attach (drivers/base/dd.c:1071)
[ 5.489676] ? device_driver_attach (drivers/base/dd.c:1071)
[ 5.489676] bus_for_each_dev (drivers/base/bus.c:305)
[ 5.489676] bus_add_driver (drivers/base/bus.c:623)
[ 5.489676] driver_register (drivers/base/driver.c:171)
[ 5.489676] ? intel_lpss_init (drivers/mfd/intel-lpss-pci.c:450)
[ 5.489676] do_one_initcall (init/main.c:1249)
[ 5.489676] ? rcu_read_lock_sched_held (include/linux/lockdep.h:283 kernel/rcu/update.c:125)
[ 5.489676] kernel_init_freeable (init/main.c:1321 init/main.c:1338 init/main.c:1358 init/main.c:1560)
[ 5.489676] ? rest_init (init/main.c:1444)
[ 5.489676] kernel_init (init/main.c:1449)
[ 5.489676] ret_from_fork (arch/x86/entry/entry_64.S:294)
[ 5.489676] Modules linked in:
[ 5.781493] ---[ end trace 3ef99eb0369b1cec ]---
[ 5.786147] RIP: 0010:__list_add_valid.cold (lib/list_debug.c:29 (discriminator 3))
[ 5.791239] Code: 9f ec 81 ff 4c 89 c1 48 c7 c7 18 a8 82 82 e8 1d e0 fe ff 0f 0b 48 89 f2 4c 89 c1 48 89 fe 48 c7 c7 c8 a8 82 82 e8 06 e0 fe ff <0f> 0b 48 89 d1 4c 89 c6 4c 89 ca 48 c7 c7 70 a8 82 82 e8 ef df fe
All code
========
0: 9f lahf
1: ec in (%dx),%al
2: 81 ff 4c 89 c1 48 cmp $0x48c1894c,%edi
8: c7 c7 18 a8 82 82 mov $0x8282a818,%edi
e: e8 1d e0 fe ff callq 0xfffffffffffee030
13: 0f 0b ud2
15: 48 89 f2 mov %rsi,%rdx
18: 4c 89 c1 mov %r8,%rcx
1b: 48 89 fe mov %rdi,%rsi
1e: 48 c7 c7 c8 a8 82 82 mov $0xffffffff8282a8c8,%rdi
25: e8 06 e0 fe ff callq 0xfffffffffffee030
2a:* 0f 0b ud2 <-- trapping instruction
2c: 48 89 d1 mov %rdx,%rcx
2f: 4c 89 c6 mov %r8,%rsi
32: 4c 89 ca mov %r9,%rdx
35: 48 c7 c7 70 a8 82 82 mov $0xffffffff8282a870,%rdi
3c: e8 .byte 0xe8
3d: ef out %eax,(%dx)
3e: df fe (bad)
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 48 89 d1 mov %rdx,%rcx
5: 4c 89 c6 mov %r8,%rsi
8: 4c 89 ca mov %r9,%rdx
b: 48 c7 c7 70 a8 82 82 mov $0xffffffff8282a870,%rdi
12: e8 .byte 0xe8
13: ef out %eax,(%dx)
14: df fe (bad)
To reproduce:
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
bin/lkp run generated-yaml-file
---
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.13.0-rc1-00059-gb3f27bce1653" of type "text/plain" (175548 bytes)
View attachment "job-script" of type "text/plain" (6263 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (13584 bytes)
View attachment "job.yaml" of type "text/plain" (5304 bytes)
Powered by blists - more mailing lists