zd1211rw 3-1:254.219: phy3 zd1211rw 3-1:254.57: error ioread32(CR_REG1): -11 ============================================ WARNING: possible recursive locking detected 5.17.0-syzkaller-13578-ge8b767f5e040 #0 Not tainted -------------------------------------------- kworker/0:2/674 is trying to acquire lock: ffff8881091d5f90 (&chip->mutex){+.+.}-{3:3}, at: zd_chip_disable_rxtx+0x1c/0x40 drivers/net/wireless/zydas/zd1211rw/zd_chip.c:1465 but task is already holding lock: ffff8881162ddf90 (&chip->mutex){+.+.}-{3:3}, at: pre_reset+0x217/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/0:2/674: #0: ffff888109a6b538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888109a6b538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888109a6b538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888109a6b538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888109a6b538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888109a6b538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260 #1: ffffc90001d3fda8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264 #2: ffff88810f023220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:767 [inline] #2: ffff88810f023220 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4680 drivers/usb/core/hub.c:5693 #3: ffff888113380220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:767 [inline] #3: ffff888113380220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7a/0x4a0 drivers/base/dd.c:944 #4: ffff8881133871a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:767 [inline] #4: ffff8881133871a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7a/0x4a0 drivers/base/dd.c:944 #5: ffff8881162ddf90 (&chip->mutex){+.+.}-{3:3}, at: pre_reset+0x217/0x290 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1503 stack backtrace: CPU: 0 PID: 674 Comm: kworker/0:2 Not tainted 5.17.0-syzkaller-13578-ge8b767f5e040 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_deadlock_bug kernel/locking/lockdep.c:2958 [inline] check_deadlock kernel/locking/lockdep.c:3001 [inline] validate_chain kernel/locking/lockdep.c:3790 [inline] __lock_acquire.cold+0x12c/0x3a7 kernel/locking/lockdep.c:5029 lock_acquire kernel/locking/lockdep.c:5641 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5606 __mutex_lock_common kernel/locking/mutex.c:600 [inline] __mutex_lock+0x12f/0x12f0 kernel/locking/mutex.c:733 zd_chip_disable_rxtx+0x1c/0x40 drivers/net/wireless/zydas/zd1211rw/zd_chip.c:1465 zd_op_stop+0x60/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+0x19d/0x290 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1501 usb_reset_device+0x37d/0x9a0 drivers/usb/core/hub.c:6111 probe+0x10f/0x590 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1370 usb_probe_interface+0x315/0x7f0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:541 [inline] really_probe+0x23e/0xb20 drivers/base/dd.c:620 __driver_probe_device+0x338/0x4d0 drivers/base/dd.c:751 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:781 __device_attach_driver+0x20b/0x2f0 drivers/base/dd.c:898 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:427 __device_attach+0x228/0x4a0 drivers/base/dd.c:969 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:487 device_add+0xb83/0x1e20 drivers/base/core.c:3405 usb_set_configuration+0x101e/0x1900 drivers/usb/core/message.c:2170 usb_generic_driver_probe+0xba/0x100 drivers/usb/core/generic.c:238 usb_probe_device+0xd9/0x2c0 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:541 [inline] really_probe+0x23e/0xb20 drivers/base/dd.c:620 __driver_probe_device+0x338/0x4d0 drivers/base/dd.c:751 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:781 __device_attach_driver+0x20b/0x2f0 drivers/base/dd.c:898 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:427 __device_attach+0x228/0x4a0 drivers/base/dd.c:969 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:487 device_add+0xb83/0x1e20 drivers/base/core.c:3405 usb_new_device.cold+0x641/0x1091 drivers/usb/core/hub.c:2566 hub_port_connect drivers/usb/core/hub.c:5363 [inline] hub_port_connect_change drivers/usb/core/hub.c:5507 [inline] port_event drivers/usb/core/hub.c:5665 [inline] hub_event+0x25c6/0x4680 drivers/usb/core/hub.c:5747 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2ef/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 zd1211rw 3-1:254.219: error ioread32(CR_REG1): -11 zd1211rw 3-1:254.17: couldn't reset usb device. Error number -19 usb 3-1: USB disconnect, device number 2 usb 3-1: new high-speed USB device number 3 using dummy_hcd usb 3-1: Using ep0 maxpacket: 32 usb 3-1: New USB device found, idVendor=0c88, idProduct=0021, bcdDevice= 4.66 usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 3-1: Product: syz usb 3-1: Manufacturer: syz usb 3-1: SerialNumber: syz visor 3-1:1.0: Handspring Visor / Palm OS converter detected usb 3-1: Handspring Visor / Palm OS converter now attached to ttyUSB0 usb 3-1: Handspring Visor / Palm OS converter now attached to ttyUSB1 usb 5-1: new high-speed USB device number 9 using dummy_hcd usb 5-1: New USB device found, idVendor=2013, idProduct=025d, bcdDevice=aa.84 usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 5-1: config 0 descriptor?? dvb-usb: found a 'PCTV 2002e SE' in cold state, will try to load a firmware dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.20.fw' dib0700: firmware download failed at 7 with -22 usb 5-1: USB disconnect, device number 9 usb 5-1: new full-speed USB device number 10 using dummy_hcd usb 5-1: New USB device found, idVendor=2013, idProduct=025d, bcdDevice=aa.84 usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 5-1: config 0 descriptor?? dvb-usb: found a 'PCTV 2002e SE' in warm state. dvb-usb: will use the device's hardware PID filter (table count: 32). dvbdev: DVB: registering new adapter (PCTV 2002e SE) usb 5-1: media controller created dvbdev: dvb_create_media_entity: media entity 'dvb-demux' registered. DVB: Unable to find symbol dib7000p_attach() dvb-usb: no frontend was attached by 'PCTV 2002e SE' dvb-usb: will use the device's hardware PID filter (table count: 32). dvbdev: DVB: registering new adapter (PCTV 2002e SE) usb 5-1: media controller created dvbdev: dvb_create_media_entity: media entity 'dvb-demux' registered. DVB: Unable to find symbol dib7000p_attach() dvb-usb: no frontend was attached by 'PCTV 2002e SE' rc_core: IR keymap rc-dib0700-rc5 not found Registered IR keymap rc-empty dvb-usb: could not initialize remote control. dvb-usb: PCTV 2002e SE successfully initialized and connected. usb 5-1: USB disconnect, device number 10 dvb-usb: PCTV 2002e SE successfully deinitialized and disconnected.