[tj-wq:ordered-cleanup] [scsi] 25aa2ad5c3: WARNING:at_kernel/workqueue.c:#workqueue_sysfs_register

11 views
Skip to first unread message

kernel test robot

unread,
Apr 25, 2023, 12:50:00 PM4/25/23
to Tejun Heo, oe-...@lists.linux.dev, l...@intel.com, James E.J. Bottomley, Martin K. Petersen, linux...@vger.kernel.org, open-...@googlegroups.com, olive...@intel.com


Hello,

kernel test robot noticed "WARNING:at_kernel/workqueue.c:#workqueue_sysfs_register" on:

commit: 25aa2ad5c302824d6ff271e4b0030ac92cb99a69 ("scsi: Use alloc_ordered_workqueue() to create ordered workqueues")
https://git.kernel.org/cgit/linux/kernel/git/tj/wq.git ordered-cleanup

in testcase: boot

compiler: clang-14
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

(please refer to attached dmesg/kmsg for entire log/backtrace)



If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <olive...@intel.com>
| Link: https://lore.kernel.org/oe-lkp/202304251456.d77...@intel.com


[ 53.193336][ T14] ------------[ cut here ]------------
[ 53.194297][ T14] WARNING: CPU: 0 PID: 14 at kernel/workqueue.c:5871 workqueue_sysfs_register (??:?)
[ 53.195680][ T14] Modules linked in:
[ 53.196286][ T14] CPU: 0 PID: 14 Comm: kworker/0:1 Not tainted 6.3.0-rc7-00151-g25aa2ad5c302 #1
[ 53.197580][ T14] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-5 04/01/2014
[ 53.199096][ T14] Workqueue: events work_for_cpu_fn
[ 53.199844][ T14] RIP: 0010:workqueue_sysfs_register (??:?)
[ 53.200811][ T14] Code: e8 a6 02 48 b8 00 00 00 00 00 fc ff df 41 80 3c 06 00 48 8b 5c 24 10 0f 84 ff fe ff ff 48 89 df e8 4b e8 4e 00 e9 f2 fe ff ff <0f> 0b 41 bd ea ff ff ff eb b0 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c
All code
========
0: e8 a6 02 48 b8 callq 0xffffffffb84802ab
5: 00 00 add %al,(%rax)
7: 00 00 add %al,(%rax)
9: 00 fc add %bh,%ah
b: ff (bad)
c: df 41 80 filds -0x80(%rcx)
f: 3c 06 cmp $0x6,%al
11: 00 48 8b add %cl,-0x75(%rax)
14: 5c pop %rsp
15: 24 10 and $0x10,%al
17: 0f 84 ff fe ff ff je 0xffffffffffffff1c
1d: 48 89 df mov %rbx,%rdi
20: e8 4b e8 4e 00 callq 0x4ee870
25: e9 f2 fe ff ff jmpq 0xffffffffffffff1c
2a:* 0f 0b ud2 <-- trapping instruction
2c: 41 bd ea ff ff ff mov $0xffffffea,%r13d
32: eb b0 jmp 0xffffffffffffffe4
34: 89 e9 mov %ebp,%ecx
36: 80 e1 07 and $0x7,%cl
39: 80 c1 03 add $0x3,%cl
3c: 38 c1 cmp %al,%cl
3e: 0f .byte 0xf
3f: 8c .byte 0x8c

Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 41 bd ea ff ff ff mov $0xffffffea,%r13d
8: eb b0 jmp 0xffffffffffffffba
a: 89 e9 mov %ebp,%ecx
c: 80 e1 07 and $0x7,%cl
f: 80 c1 03 add $0x3,%cl
12: 38 c1 cmp %al,%cl
14: 0f .byte 0xf
15: 8c .byte 0x8c
[ 53.203574][ T14] RSP: 0000:ffff88810032f548 EFLAGS: 00010202
[ 53.204517][ T14] RAX: ffff888100175900 RBX: dffffc0000000000 RCX: ffffffff813ee8ba
[ 53.205678][ T14] RDX: dffffc0000000000 RSI: 0000000000000008 RDI: ffff888100175800
[ 53.206814][ T14] RBP: ffff8881001759c0 R08: dffffc0000000000 R09: fffffbfff1276c09
[ 53.207950][ T14] R10: dffff7fff1276c0a R11: 1ffffffff1276c08 R12: 1ffff1102002eb38
[ 53.209111][ T14] R13: ffff888100175800 R14: 1ffff11020065ed4 R15: dffffc0000000000
[ 53.210304][ T14] FS: 0000000000000000(0000) GS:ffff8883aea00000(0000) knlGS:0000000000000000
[ 53.211568][ T14] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 53.212492][ T14] CR2: ffff88843ffff000 CR3: 00000000072c0000 CR4: 00000000000406f0
[ 53.213598][ T14] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 53.214793][ T14] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 53.215927][ T14] Call Trace:
[ 53.218382][ T14] <TASK>
[ 53.218803][ T14] ? init_rescuer (workqueue.c:?)
[ 53.219468][ T14] alloc_workqueue (??:?)
[ 53.220201][ T14] ? try_to_wake_up (core.c:?)
[ 53.220940][ T14] ? kthread_create_on_node (??:?)
[ 53.221749][ T14] ? apply_workqueue_attrs (??:?)
[ 53.222605][ T14] ? __init_waitqueue_head (??:?)
[ 53.223408][ T14] ? device_initialize (??:?)
[ 53.224134][ T14] scsi_host_alloc (??:?)
[ 53.224941][ T14] ata_scsi_add_hosts (??:?)
[ 53.225672][ T14] ? ata_tport_add (??:?)
[ 53.226409][ T14] ata_host_register (??:?)
[ 53.227124][ T14] ata_pci_sff_activate_host (??:?)
[ 53.227909][ T14] ? ata_bmdma_port_intr (??:?)
[ 53.228711][ T14] ? ata_pci_sff_prepare_host (??:?)
[ 53.229513][ T14] ? dmi_matches (dmi_scan.c:?)
[ 53.230265][ T14] piix_init_one (ata_piix.c:?)
[ 53.230978][ T14] ? pdc20621_put_to_dimm (ata_piix.c:?)
[ 53.232052][ T14] ? lockdep_hardirqs_on_prepare (??:?)
[ 53.232929][ T14] ? print_irqtrace_events (??:?)
[ 53.233725][ T14] ? do_raw_spin_unlock (??:?)
[ 53.234539][ T14] ? read_lock_is_recursive (??:?)
[ 53.235320][ T14] ? __lock_acquire (??:?)
[ 53.236050][ T14] ? pdc20621_put_to_dimm (ata_piix.c:?)
[ 53.236852][ T14] local_pci_probe (pci-driver.c:?)
[ 53.237539][ T14] ? remove_id_store (pci-driver.c:?)
[ 53.238302][ T14] work_for_cpu_fn (workqueue.c:?)
[ 53.238945][ T14] process_one_work (workqueue.c:?)
[ 53.239647][ T14] ? rescuer_thread (workqueue.c:?)
[ 53.240372][ T14] ? _raw_spin_lock_irqsave (??:?)
[ 53.241191][ T14] ? wq_worker_sleeping (??:?)
[ 53.241948][ T14] worker_thread (workqueue.c:?)
[ 53.242788][ T14] kthread (kthread.c:?)
[ 53.243365][ T14] ? pr_cont_work (workqueue.c:?)
[ 53.244019][ T14] ? kthread_blkcg (kthread.c:?)
[ 53.244719][ T14] ret_from_fork (??:?)
[ 53.245387][ T14] </TASK>
[ 53.245831][ T14] irq event stamp: 79941
[ 53.246510][ T14] hardirqs last enabled at (79953): __up_console_sem (printk.c:?)
[ 53.247872][ T14] hardirqs last disabled at (79962): __up_console_sem (printk.c:?)
[ 53.249228][ T14] softirqs last enabled at (79886): __irq_exit_rcu (softirq.c:?)
[ 53.250603][ T14] softirqs last disabled at (79881): __irq_exit_rcu (softirq.c:?)
[ 53.251924][ T14] ---[ end trace 0000000000000000 ]---
[ 53.256400][ T14] scsi host0: failed to create tmf workq
[ 53.270705][ T1] ata_piix: probe of 0000:00:01.1 failed with error -12
[ 53.272881][ T1] initcall piix_init+0x0/0x30 returned 0 after 94012 usecs
[ 53.274079][ T1] calling mv_init+0x0/0x50 @ 1
[ 53.275182][ T1] initcall mv_init+0x0/0x50 returned 0 after 336 usecs
[ 53.276240][ T1] calling pdc_ata_pci_driver_init+0x0/0x20 @ 1
[ 53.277295][ T1] initcall pdc_ata_pci_driver_init+0x0/0x20 returned 0 after 150 usecs
[ 53.278593][ T1] calling sil_pci_driver_init+0x0/0x20 @ 1
[ 53.279741][ T1] initcall sil_pci_driver_init+0x0/0x20 returned 0 after 245 usecs
[ 53.280956][ T1] calling k2_sata_pci_driver_init+0x0/0x20 @ 1
[ 53.282196][ T1] initcall k2_sata_pci_driver_init+0x0/0x20 returned 0 after 279 usecs
[ 53.283409][ T1] calling uli_pci_driver_init+0x0/0x20 @ 1
[ 53.284489][ T1] initcall uli_pci_driver_init+0x0/0x20 returned 0 after 206 usecs
[ 53.285662][ T1] calling vsc_sata_pci_driver_init+0x0/0x20 @ 1
[ 53.286920][ T1] initcall vsc_sata_pci_driver_init+0x0/0x20 returned 0 after 211 usecs
[ 53.288134][ T1] calling ali_init+0x0/0x50 @ 1
[ 53.289048][ T1] initcall ali_init+0x0/0x50 returned 0 after 170 usecs
[ 53.290171][ T1] calling atp867x_driver_init+0x0/0x20 @ 1
[ 53.291276][ T1] initcall atp867x_driver_init+0x0/0x20 returned 0 after 209 usecs
[ 53.292434][ T1] calling cmd64x_pci_driver_init+0x0/0x20 @ 1
[ 53.293558][ T1] initcall cmd64x_pci_driver_init+0x0/0x20 returned 0 after 177 usecs
[ 53.294868][ T1] calling cy82c693_pci_driver_init+0x0/0x20 @ 1
[ 53.296010][ T1] initcall cy82c693_pci_driver_init+0x0/0x20 returned 0 after 197 usecs
[ 53.305202][ T1] calling efar_pci_driver_init+0x0/0x20 @ 1
[ 53.306390][ T1] initcall efar_pci_driver_init+0x0/0x20 returned 0 after 252 usecs
[ 53.307629][ T1] calling hpt36x_pci_driver_init+0x0/0x20 @ 1
[ 53.308738][ T1] initcall hpt36x_pci_driver_init+0x0/0x20 returned 0 after 177 usecs
[ 53.309968][ T1] calling hpt37x_pci_driver_init+0x0/0x20 @ 1
[ 53.311156][ T1] initcall hpt37x_pci_driver_init+0x0/0x20 returned 0 after 240 usecs
[ 53.312355][ T1] calling hpt3x3_pci_driver_init+0x0/0x20 @ 1
[ 53.313493][ T1] initcall hpt3x3_pci_driver_init+0x0/0x20 returned 0 after 206 usecs
[ 53.314785][ T1] calling it8213_pci_driver_init+0x0/0x20 @ 1
[ 53.315836][ T1] initcall it8213_pci_driver_init+0x0/0x20 returned 0 after 160 usecs
[ 53.317010][ T1] calling it821x_pci_driver_init+0x0/0x20 @ 1
[ 53.318156][ T1] initcall it821x_pci_driver_init+0x0/0x20 returned 0 after 240 usecs
[ 53.319413][ T1] calling jmicron_pci_driver_init+0x0/0x20 @ 1
[ 53.320650][ T1] initcall jmicron_pci_driver_init+0x0/0x20 returned 0 after 279 usecs
[ 53.321933][ T1] calling pdc2027x_pci_driver_init+0x0/0x20 @ 1
[ 53.323071][ T1] initcall pdc2027x_pci_driver_init+0x0/0x20 returned 0 after 163 usecs
[ 53.324437][ T1] calling pdc202xx_pci_driver_init+0x0/0x20 @ 1
[ 53.325573][ T1] initcall pdc202xx_pci_driver_init+0x0/0x20 returned 0 after 166 usecs
[ 53.326881][ T1] calling rdc_pci_driver_init+0x0/0x20 @ 1
[ 53.328040][ T1] initcall rdc_pci_driver_init+0x0/0x20 returned 0 after 226 usecs
[ 53.329273][ T1] calling serverworks_pci_driver_init+0x0/0x20 @ 1
[ 53.330555][ T1] initcall serverworks_pci_driver_init+0x0/0x20 returned 0 after 243 usecs
[ 53.331846][ T1] calling sil680_pci_driver_init+0x0/0x20 @ 1
[ 53.333009][ T1] initcall sil680_pci_driver_init+0x0/0x20 returned 0 after 193 usecs
[ 53.334321][ T1] calling sis_pci_driver_init+0x0/0x20 @ 1
[ 53.335359][ T1] initcall sis_pci_driver_init+0x0/0x20 returned 0 after 153 usecs
[ 53.336528][ T1] calling ata_tosh_pci_driver_init+0x0/0x20 @ 1
[ 53.337591][ T1] initcall ata_tosh_pci_driver_init+0x0/0x20 returned 0 after 156 usecs
[ 53.338925][ T1] calling triflex_pci_driver_init+0x0/0x20 @ 1
[ 53.340113][ T1] initcall triflex_pci_driver_init+0x0/0x20 returned 0 after 246 usecs


To reproduce:

# build kernel
cd linux
cp config-6.3.0-rc7-00151-g25aa2ad5c302 .config
make HOSTCC=clang-14 CC=clang-14 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
make HOSTCC=clang-14 CC=clang-14 ARCH=x86_64 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.



--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests


config-6.3.0-rc7-00151-g25aa2ad5c302
job-script
dmesg.xz
Reply all
Reply to author
Forward
0 new messages