Hello, we reported "[tj-wq:ordered-cleanup] [scsi] 25aa2ad5c3: WARNING:at_kernel/workqueue.c:#workqueue_sysfs_register" on https://lore.kernel.org/all/202304251456.d77841dd-oliver.sang@intel.com/ when this commit is 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 now we noticed this commit is already in linux-next/master. since we still observed same issue in our tests, we reported this again FYI. below is the detailed report. kernel test robot noticed "WARNING:at_kernel/workqueue.c:#workqueue_sysfs_register" on: commit: 59709bb84c22905421dd05fa2a80ece411bec76f ("scsi: Use alloc_ordered_workqueue() to create ordered workqueues") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master [test failed on linux-next/master 47cba14ce6fc4f314bd814d07269d0c8de1e4ae6] in testcase: boot compiler: gcc-11 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 | Link: https://lore.kernel.org/oe-lkp/202305101032.eb213724-oliver.sang@intel.com [ 9.776932][ T1] ------------[ cut here ]------------ [ 9.778320][ T1] WARNING: CPU: 0 PID: 1 at kernel/workqueue.c:5923 workqueue_sysfs_register (??:?) [ 9.780600][ T1] Modules linked in: [ 9.798598][ T1] CPU: 0 PID: 1 Comm: swapper Tainted: G T 6.4.0-rc1-00007-g59709bb84c22 #1 5e42178dc8b4a43844b39beb4e06c668c3c6e8e3 [ 9.801539][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-5 04/01/2014 [ 9.803786][ T1] EIP: workqueue_sysfs_register (??:?) [ 9.805123][ T1] Code: c0 75 0f 8d 45 fc e8 be fe ff ff 85 c0 75 03 8b 45 08 c9 31 d2 31 c9 c3 55 89 e5 57 56 53 83 ec 08 f6 80 e2 00 00 00 08 74 0c <0f> 0b bf ea ff ff ff e9 cc 00 00 00 89 c6 ba c0 0c 00 00 b8 78 01 All code ======== 0: c0 75 0f 8d shlb $0x8d,0xf(%rbp) 4: 45 fc rex.RB cld 6: e8 be fe ff ff callq 0xfffffffffffffec9 b: 85 c0 test %eax,%eax d: 75 03 jne 0x12 f: 8b 45 08 mov 0x8(%rbp),%eax 12: c9 leaveq 13: 31 d2 xor %edx,%edx 15: 31 c9 xor %ecx,%ecx 17: c3 retq 18: 55 push %rbp 19: 89 e5 mov %esp,%ebp 1b: 57 push %rdi 1c: 56 push %rsi 1d: 53 push %rbx 1e: 83 ec 08 sub $0x8,%esp 21: f6 80 e2 00 00 00 08 testb $0x8,0xe2(%rax) 28: 74 0c je 0x36 2a:* 0f 0b ud2 <-- trapping instruction 2c: bf ea ff ff ff mov $0xffffffea,%edi 31: e9 cc 00 00 00 jmpq 0x102 36: 89 c6 mov %eax,%esi 38: ba c0 0c 00 00 mov $0xcc0,%edx 3d: b8 .byte 0xb8 3e: 78 01 js 0x41 Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: bf ea ff ff ff mov $0xffffffea,%edi 7: e9 cc 00 00 00 jmpq 0xd8 c: 89 c6 mov %eax,%esi e: ba c0 0c 00 00 mov $0xcc0,%edx 13: b8 .byte 0xb8 14: 78 01 js 0x17 [ 9.809253][ T1] EAX: c56ba800 EBX: c56ba800 ECX: 00000000 EDX: 00000000 [ 9.810916][ T1] ESI: 000a004a EDI: c56ba8b8 EBP: c3e49d78 ESP: c3e49d64 [ 9.812595][ T1] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00010202 [ 9.814419][ T1] CR0: 80050033 CR2: ffdaa000 CR3: 03163000 CR4: 00040690 [ 9.816114][ T1] Call Trace: [ 9.817007][ T1] ? init_rescuer (workqueue.c:?) [ 9.818075][ T1] alloc_workqueue (??:?) [ 9.819214][ T1] scsi_host_alloc (??:?) [ 9.820399][ T1] sdebug_driver_probe (scsi_debug.c:?) [ 9.821615][ T1] ? sysfs_create_link (??:?) [ 9.822772][ T1] really_probe (dd.c:?) [ 9.823946][ T1] __driver_probe_device (dd.c:?) [ 9.825218][ T1] driver_probe_device (dd.c:?) [ 9.826405][ T1] __device_attach_driver (dd.c:?) [ 9.827666][ T1] bus_for_each_drv (??:?) [ 9.828813][ T1] __device_attach (dd.c:?) [ 9.829976][ T1] ? driver_probe_device (dd.c:?) [ 9.831180][ T1] device_initial_probe (??:?) [ 9.832389][ T1] bus_probe_device (??:?) [ 9.833579][ T1] device_add (??:?) [ 9.834658][ T1] device_register (??:?) [ 9.835791][ T1] sdebug_add_host_helper (scsi_debug.c:?) [ 9.837129][ T1] scsi_debug_init (scsi_debug.c:?) [ 9.838279][ T1] ? ses_init (scsi_debug.c:?) [ 9.839322][ T1] do_one_initcall (??:?) [ 9.840507][ T1] ? rdinit_setup (main.c:?) [ 9.841626][ T1] do_initcalls (main.c:?) [ 9.842719][ T1] kernel_init_freeable (main.c:?) [ 9.843956][ T1] ? rest_init (main.c:?) [ 9.845022][ T1] kernel_init (main.c:?) [ 9.846099][ T1] ret_from_fork (??:?) [ 9.847231][ T1] irq event stamp: 112397 [ 9.848320][ T1] hardirqs last enabled at (112409): __up_console_sem (printk.c:?) [ 9.850447][ T1] hardirqs last disabled at (112422): __up_console_sem (printk.c:?) [ 9.852509][ T1] softirqs last enabled at (111600): __do_softirq (??:?) [ 9.854571][ T1] softirqs last disabled at (111591): call_on_stack (irq_32.c:?) [ 9.856598][ T1] ---[ end trace 0000000000000000 ]--- [ 9.859173][ T1] scsi host0: failed to create tmf workq [ 9.861023][ T1] scsi_debug:sdebug_driver_probe: scsi_host_alloc failed [ 9.862682][ T1] probe of adapter0 returned 19 after 86023 usecs To reproduce: # build kernel cd linux cp config-6.4.0-rc1-00007-g59709bb84c22 .config make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 INSTALL_MOD_PATH= modules_install cd 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 -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