zd1211rw 2-1:8.49: error ioread32(CR_REG1): -11 ============================================ WARNING: possible recursive locking detected 6.4.0-rc5-syzkaller-g88d8f3ac9c67 #0 Not tainted -------------------------------------------- kworker/1:3/5246 is trying to acquire lock: ffff888132f3dfd0 (&chip->mutex){+.+.}-{3:3}, at: zd_chip_disable_rxtx+0x20/0x50 drivers/net/wireless/zydas/zd1211rw/zd_chip.c:1465 but task is already holding lock: ffff88811c2f5fd0 (&chip->mutex){+.+.}-{3:3}, at: pre_reset+0x213/0x290 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1503 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&chip->mutex); lock(&chip->mutex); *** DEADLOCK *** May be due to missing lock nesting notation 6 locks held by kworker/1:3/5246: #0: ffff88810c654138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88810c654138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff88810c654138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline] #0: ffff88810c654138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline] #0: ffff88810c654138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline] #0: ffff88810c654138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376 #1: ffffc90001c6fdb0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffff88810436d190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #2: ffff88810436d190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c0/0x4ed0 drivers/usb/core/hub.c:5754 #3: ffff8881165e6190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #3: ffff8881165e6190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x76/0x4b0 drivers/base/dd.c:1005 #4: ffff888108f35160 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #4: ffff888108f35160 (&dev->mutex){....}-{3:3}, at: __device_attach+0x76/0x4b0 drivers/base/dd.c:1005 #5: ffff88811c2f5fd0 (&chip->mutex){+.+.}-{3:3}, at: pre_reset+0x213/0x290 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1503 stack backtrace: CPU: 1 PID: 5246 Comm: kworker/1:3 Not tainted 6.4.0-rc5-syzkaller-g88d8f3ac9c67 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_deadlock_bug kernel/locking/lockdep.c:3006 [inline] check_deadlock kernel/locking/lockdep.c:3049 [inline] validate_chain kernel/locking/lockdep.c:3834 [inline] __lock_acquire+0x13eb/0x5f30 kernel/locking/lockdep.c:5088 lock_acquire kernel/locking/lockdep.c:5705 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5670 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x12f/0x1350 kernel/locking/mutex.c:747 zd_chip_disable_rxtx+0x20/0x50 drivers/net/wireless/zydas/zd1211rw/zd_chip.c:1465 zd_op_stop+0x64/0x1a0 drivers/net/wireless/zydas/zd1211rw/zd_mac.c:343 zd_usb_stop drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1478 [inline] pre_reset+0x199/0x290 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1501 usb_reset_device+0x41b/0xac0 drivers/usb/core/hub.c:6195 probe+0x119/0x930 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1370 usb_probe_interface+0x30f/0x960 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:579 [inline] really_probe+0x240/0xca0 drivers/base/dd.c:658 __driver_probe_device+0x1df/0x4b0 drivers/base/dd.c:800 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:830 __device_attach_driver+0x1d4/0x2e0 drivers/base/dd.c:958 bus_for_each_drv+0x149/0x1d0 drivers/base/bus.c:457 __device_attach+0x1e4/0x4b0 drivers/base/dd.c:1030 bus_probe_device+0x17c/0x1c0 drivers/base/bus.c:532 device_add+0x112d/0x1a40 drivers/base/core.c:3625 usb_set_configuration+0x1196/0x1bc0 drivers/usb/core/message.c:2211 usb_generic_driver_probe+0xcf/0x130 drivers/usb/core/generic.c:238 usb_probe_device+0xd8/0x2c0 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:579 [inline] really_probe+0x240/0xca0 drivers/base/dd.c:658 __driver_probe_device+0x1df/0x4b0 drivers/base/dd.c:800 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:830 __device_attach_driver+0x1d4/0x2e0 drivers/base/dd.c:958 bus_for_each_drv+0x149/0x1d0 drivers/base/bus.c:457 __device_attach+0x1e4/0x4b0 drivers/base/dd.c:1030 bus_probe_device+0x17c/0x1c0 drivers/base/bus.c:532 device_add+0x112d/0x1a40 drivers/base/core.c:3625 usb_new_device+0xcb2/0x19d0 drivers/usb/core/hub.c:2590 hub_port_connect drivers/usb/core/hub.c:5422 [inline] hub_port_connect_change drivers/usb/core/hub.c:5566 [inline] port_event drivers/usb/core/hub.c:5726 [inline] hub_event+0x2e3d/0x4ed0 drivers/usb/core/hub.c:5808 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 zd1211rw 2-1:8.20: error ioread32(CR_REG1): -11 usb 2-1: reset high-speed USB device number 126 using dummy_hcd usb 2-1: device firmware changed zd1211rw 2-1:8.180: couldn't reset usb device. Error number -19 usb 2-1: USB disconnect, device number 126 usb 2-1: new high-speed USB device number 127 using dummy_hcd usb 2-1: unable to read config index 0 descriptor/start: -61 usb 2-1: can't read configurations, error -61 usb 2-1: new high-speed USB device number 2 using dummy_hcd usb 2-1: unable to read config index 0 descriptor/start: -61 usb 2-1: can't read configurations, error -61 usb usb2-port1: attempt power cycle usb 2-1: new high-speed USB device number 3 using dummy_hcd usb 2-1: unable to read config index 0 descriptor/start: -61 usb 2-1: can't read configurations, error -61 usb 2-1: new high-speed USB device number 4 using dummy_hcd usb 2-1: device descriptor read/all, error -71 usb usb2-port1: unable to enumerate USB device usb 2-1: new high-speed USB device number 5 using dummy_hcd usb 2-1: unable to read config index 0 descriptor/start: -61 usb 2-1: can't read configurations, error -61 usb 2-1: new high-speed USB device number 6 using dummy_hcd usb 2-1: unable to read config index 0 descriptor/start: -61 usb 2-1: can't read configurations, error -61 usb usb2-port1: attempt power cycle usb 2-1: new high-speed USB device number 7 using dummy_hcd usb 2-1: unable to read config index 0 descriptor/start: -61 usb 2-1: can't read configurations, error -61 usb 2-1: new high-speed USB device number 8 using dummy_hcd usb 2-1: unable to read config index 0 descriptor/start: -61 usb 2-1: can't read configurations, error -61 usb usb2-port1: unable to enumerate USB device usb 5-1: USB disconnect, device number 88 usb 6-1: USB disconnect, device number 63 usb 4-1: USB disconnect, device number 111 usb 6-1: new high-speed USB device number 64 using dummy_hcd usb 6-1: config 21 has an invalid descriptor of length 0, skipping remainder of the config usb 6-1: config 21 has 1 interface, different from the descriptor's value: 2 usb 6-1: config 21 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 7 usb 6-1: New USB device found, idVendor=0535, idProduct=a4a1, bcdDevice=b7.40 usb 6-1: New USB device strings: Mfr=170, Product=36, SerialNumber=232 usb 6-1: Product: syz usb 6-1: Manufacturer: syz usb 6-1: SerialNumber: syz cdc_wdm 6-1:21.0: cdc-wdm1: USB WDM device usb 6-1: USB disconnect, device number 64