zd1211rw 5-1:6.128: error ioread32(CR_REG1): -11 ============================================ WARNING: possible recursive locking detected 6.4.0-rc1-syzkaller-00017-gee4d21aa4a22 #0 Not tainted -------------------------------------------- kworker/1:7/5856 is trying to acquire lock: ffff88810f3adfd0 (&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: ffff88811d32dfd0 (&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:7/5856: #0: ffff88810ce78538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88810ce78538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff88810ce78538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline] #0: ffff88810ce78538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline] #0: ffff88810ce78538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline] #0: ffff88810ce78538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376 #1: ffffc9000cdf7db0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffff888105b54190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #2: ffff888105b54190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c0/0x4ed0 drivers/usb/core/hub.c:5739 #3: ffff88811f72b190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #3: ffff88811f72b190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x76/0x4b0 drivers/base/dd.c:1005 #4: ffff88813c338160 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #4: ffff88813c338160 (&dev->mutex){....}-{3:3}, at: __device_attach+0x76/0x4b0 drivers/base/dd.c:1005 #5: ffff88811d32dfd0 (&chip->mutex){+.+.}-{3:3}, at: pre_reset+0x213/0x290 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1503 stack backtrace: CPU: 1 PID: 5856 Comm: kworker/1:7 Not tainted 6.4.0-rc1-syzkaller-00017-gee4d21aa4a22 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/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:3001 [inline] check_deadlock kernel/locking/lockdep.c:3044 [inline] validate_chain kernel/locking/lockdep.c:3829 [inline] __lock_acquire+0x13b3/0x5df0 kernel/locking/lockdep.c:5074 lock_acquire kernel/locking/lockdep.c:5691 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5656 __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:6180 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:2575 hub_port_connect drivers/usb/core/hub.c:5407 [inline] hub_port_connect_change drivers/usb/core/hub.c:5551 [inline] port_event drivers/usb/core/hub.c:5711 [inline] hub_event+0x2e3d/0x4ed0 drivers/usb/core/hub.c:5793 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 5-1:6.31: error ioread32(CR_REG1): -11 zd1211rw 5-1:6.6: couldn't reset usb device. Error number -19 usb 5-1: USB disconnect, device number 113 usb 5-1: new high-speed USB device number 114 using dummy_hcd usb 5-1: Using ep0 maxpacket: 16 usb 5-1: config index 0 descriptor too short (expected 2304, got 36) usb 5-1: invalid descriptor for config index 0: type = 0x2, length = 1 usb 5-1: can't read configurations, error -22 usb 5-1: new high-speed USB device number 115 using dummy_hcd usb 5-1: Using ep0 maxpacket: 16 usb 5-1: config index 0 descriptor too short (expected 2304, got 36) usb 5-1: invalid descriptor for config index 0: type = 0x2, length = 1 usb 5-1: can't read configurations, error -22 usb usb5-port1: attempt power cycle usb 5-1: new high-speed USB device number 116 using dummy_hcd usb 5-1: Using ep0 maxpacket: 16 usb 5-1: unable to read config index 0 descriptor/start: -71 usb 5-1: can't read configurations, error -71 usb 5-1: new high-speed USB device number 117 using dummy_hcd usb 5-1: Using ep0 maxpacket: 16 usb 5-1: config index 0 descriptor too short (expected 2304, got 36) usb 5-1: invalid descriptor for config index 0: type = 0x2, length = 1 usb 5-1: can't read configurations, error -22 usb usb5-port1: unable to enumerate USB device usb 2-1: USB disconnect, device number 123 usb 4-1: new high-speed USB device number 8 using dummy_hcd usb 4-1: Using ep0 maxpacket: 16 usb 4-1: config 1 contains an unexpected descriptor of type 0x1, skipping usb 4-1: config 1 has an invalid descriptor of length 1, skipping remainder of the config usb 4-1: config 1 has 1 interface, different from the descriptor's value: 3 usb 4-1: string descriptor 0 read error: -22 usb 4-1: New USB device found, idVendor=1d6b, idProduct=0101, bcdDevice= 0.40 usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 4-1: 0:2 : does not exist usb 1-1: new high-speed USB device number 59 using dummy_hcd usb 1-1: config 17 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 7 usb 1-1: config 17 interface 0 altsetting 0 endpoint 0x81 has invalid wMaxPacketSize 0 usb 1-1: New USB device found, idVendor=056a, idProduct=0331, bcdDevice= 0.40 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0