usb 1-1: reset high-speed USB device number 2 using dummy_hcd usb 1-1: device descriptor read/64, error -71 usb 1-1: unable to get BOS descriptor or descriptor too short zd1211rw 1-1:129.166: phy1 zd1211rw 1-1:129.51: error ioread32(CR_REG1): -11 ============================================ WARNING: possible recursive locking detected 6.11.0-rc4-syzkaller-00069-gfc88bb116179 #0 Not tainted -------------------------------------------- kworker/1:1/38 is trying to acquire lock: ffff88811d465c70 (&chip->mutex){+.+.}-{3:3}, at: zd_chip_disable_rxtx+0x1f/0x50 drivers/net/wireless/zydas/zd1211rw/zd_chip.c:1465 but task is already holding lock: ffff88811c965c70 (&chip->mutex){+.+.}-{3:3}, at: pre_reset+0x20b/0x280 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1504 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:1/38: #0: ffff888104ac6d48 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x1277/0x1b40 kernel/workqueue.c:3206 #1: ffffc90000287d80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1b40 kernel/workqueue.c:3207 #2: ffff888108fdc190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1009 [inline] #2: ffff888108fdc190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1be/0x4f40 drivers/usb/core/hub.c:5849 #3: ffff888104efb190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1009 [inline] #3: ffff888104efb190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7f/0x4b0 drivers/base/dd.c:1004 #4: ffff888104efe160 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1009 [inline] #4: ffff888104efe160 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7f/0x4b0 drivers/base/dd.c:1004 #5: ffff88811c965c70 (&chip->mutex){+.+.}-{3:3}, at: pre_reset+0x20b/0x280 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1504 stack backtrace: CPU: 1 UID: 0 PID: 38 Comm: kworker/1:1 Not tainted 6.11.0-rc4-syzkaller-00069-gfc88bb116179 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 check_deadlock kernel/locking/lockdep.c:3061 [inline] validate_chain kernel/locking/lockdep.c:3855 [inline] __lock_acquire+0x2167/0x3cb0 kernel/locking/lockdep.c:5142 lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __mutex_lock_common kernel/locking/mutex.c:608 [inline] __mutex_lock+0x175/0x9c0 kernel/locking/mutex.c:752 zd_chip_disable_rxtx+0x1f/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:1479 [inline] pre_reset+0x191/0x280 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1502 usb_reset_device+0x413/0xa80 drivers/usb/core/hub.c:6304 probe+0x118/0x970 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1371 usb_probe_interface+0x309/0x9d0 drivers/usb/core/driver.c:399 call_driver_probe drivers/base/dd.c:578 [inline] really_probe+0x23e/0xa90 drivers/base/dd.c:657 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:799 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:829 __device_attach_driver+0x1df/0x310 drivers/base/dd.c:957 bus_for_each_drv+0x157/0x1e0 drivers/base/bus.c:457 __device_attach+0x1e8/0x4b0 drivers/base/dd.c:1029 bus_probe_device+0x17f/0x1c0 drivers/base/bus.c:532 device_add+0x114b/0x1a70 drivers/base/core.c:3682 usb_set_configuration+0x10cb/0x1c50 drivers/usb/core/message.c:2210 usb_generic_driver_probe+0xb1/0x110 drivers/usb/core/generic.c:254 usb_probe_device+0xec/0x3e0 drivers/usb/core/driver.c:294 call_driver_probe drivers/base/dd.c:578 [inline] really_probe+0x23e/0xa90 drivers/base/dd.c:657 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:799 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:829 __device_attach_driver+0x1df/0x310 drivers/base/dd.c:957 bus_for_each_drv+0x157/0x1e0 drivers/base/bus.c:457 __device_attach+0x1e8/0x4b0 drivers/base/dd.c:1029 bus_probe_device+0x17f/0x1c0 drivers/base/bus.c:532 device_add+0x114b/0x1a70 drivers/base/core.c:3682 usb_new_device+0xd90/0x1a10 drivers/usb/core/hub.c:2651 hub_port_connect drivers/usb/core/hub.c:5521 [inline] hub_port_connect_change drivers/usb/core/hub.c:5661 [inline] port_event drivers/usb/core/hub.c:5821 [inline] hub_event+0x2e58/0x4f40 drivers/usb/core/hub.c:5903 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 zd1211rw 1-1:129.166: error ioread32(CR_REG1): -11 usb 1-1: reset high-speed USB device number 2 using dummy_hcd usb 1-1: unable to get BOS descriptor or descriptor too short ieee80211 phy2: Selected rate control algorithm 'minstrel_ht' zd1211rw 1-1:129.36: phy2 zd1211rw 1-1:129.51: error ioread32(CR_REG1): -11 zd1211rw 1-1:129.166: error ioread32(CR_REG1): -11 zd1211rw 1-1:129.36: error ioread32(CR_REG1): -11 usb 1-1: reset high-speed USB device number 2 using dummy_hcd usb 1-1: device descriptor read/64, error -71 usb 1-1: unable to get BOS descriptor or descriptor too short ieee80211 phy3: Selected rate control algorithm 'minstrel_ht' zd1211rw 1-1:129.5: phy3 usb 1-1: USB disconnect, device number 2 usb 1-1: new high-speed USB device number 3 using dummy_hcd usb 1-1: unable to get BOS descriptor or descriptor too short usb 1-1: config 129 has an invalid interface number: 51 but max is 3 usb 1-1: config 129 has an invalid interface association descriptor of length 2, skipping usb 1-1: config 129 has an invalid interface number: 166 but max is 3 usb 1-1: config 129 has an invalid interface descriptor of length 2, skipping usb 1-1: config 129 has an invalid interface number: 36 but max is 3 usb 1-1: config 129 has an invalid interface number: 5 but max is 3 usb 1-1: config 129 contains an unexpected descriptor of type 0x2, skipping usb 1-1: config 129 has no interface number 0 usb 1-1: config 129 has no interface number 1 usb 1-1: config 129 has no interface number 2 usb 1-1: config 129 has no interface number 3 usb 1-1: config 129 interface 51 altsetting 128 endpoint 0x5 has invalid maxpacket 512, setting to 64 usb 1-1: config 129 interface 51 altsetting 128 has a duplicate endpoint with address 0x1, skipping usb 1-1: config 129 interface 166 altsetting 9 endpoint 0xD has invalid maxpacket 59363, setting to 64 usb 1-1: config 129 interface 166 altsetting 9 endpoint 0xC has invalid maxpacket 512, setting to 64 usb 1-1: config 129 interface 166 altsetting 9 endpoint 0xF has an invalid bInterval 129, changing to 11 usb 1-1: config 129 interface 166 altsetting 9 has an invalid descriptor for endpoint zero, skipping usb 1-1: config 129 interface 166 altsetting 9 endpoint 0x2 has an invalid bInterval 129, changing to 7 usb 1-1: config 129 interface 166 altsetting 9 has 5 endpoint descriptors, different from the interface descriptor's value: 8 usb 1-1: config 129 interface 36 altsetting 3 has a duplicate endpoint with address 0xC, skipping usb 1-1: config 129 interface 36 altsetting 3 has an invalid descriptor for endpoint zero, skipping usb 1-1: config 129 interface 36 altsetting 3 has a duplicate endpoint with address 0x2, skipping usb 1-1: config 129 interface 36 altsetting 3 endpoint 0x3 has an invalid bInterval 160, changing to 11 usb 1-1: config 129 interface 36 altsetting 3 has a duplicate endpoint with address 0xB, skipping usb 1-1: config 129 interface 36 altsetting 3 has a duplicate endpoint with address 0x2, skipping usb 1-1: config 129 interface 36 altsetting 3 has an invalid endpoint descriptor of length 2, skipping usb 1-1: config 129 interface 36 altsetting 3 endpoint 0x9 has invalid maxpacket 1024, setting to 64 usb 1-1: config 129 interface 36 altsetting 3 has a duplicate endpoint with address 0x3, skipping usb 1-1: config 129 interface 36 altsetting 3 has 11 endpoint descriptors, different from the interface descriptor's value: 10 usb 1-1: config 129 interface 5 altsetting 1 has a duplicate endpoint with address 0x5, skipping usb 1-1: config 129 interface 5 altsetting 1 endpoint 0x8 has an invalid bInterval 252, changing to 11 usb 1-1: config 129 interface 5 altsetting 1 has a duplicate endpoint with address 0x5, skipping usb 1-1: config 129 interface 5 altsetting 1 has a duplicate endpoint with address 0xD, skipping usb 1-1: config 129 interface 5 altsetting 1 has a duplicate endpoint with address 0xF, skipping usb 1-1: config 129 interface 5 altsetting 1 has a duplicate endpoint with address 0xF, skipping usb 1-1: config 129 interface 5 altsetting 1 has an endpoint descriptor with address 0x16, changing to 0x6 usb 1-1: config 129 interface 5 altsetting 1 has a duplicate endpoint with address 0xF, skipping usb 1-1: config 129 interface 5 altsetting 1 has a duplicate endpoint with address 0x9, skipping usb 1-1: config 129 interface 5 altsetting 1 has an invalid descriptor for endpoint zero, skipping usb 1-1: config 129 interface 5 altsetting 1 has a duplicate endpoint with address 0x9, skipping usb 1-1: config 129 interface 5 altsetting 1 endpoint 0x7 has invalid maxpacket 495, setting to 64 usb 1-1: config 129 interface 51 has no altsetting 0 usb 1-1: config 129 interface 166 has no altsetting 0 usb 1-1: config 129 interface 36 has no altsetting 0 usb 1-1: config 129 interface 5 has no altsetting 0 usb 1-1: string descriptor 0 read error: -22 usb 1-1: New USB device found, idVendor=129b, idProduct=1667, bcdDevice=1f.c4 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1: reset high-speed USB device number 3 using dummy_hcd usb 1-1: device descriptor read/64, error -32 usb 1-1: unable to get BOS descriptor or descriptor too short