zd1211rw 3-1:129.51: error ioread32(CR_REG1): -11 ============================================ WARNING: possible recursive locking detected 6.4.0-rc1-syzkaller-00001-g986866c3dfb0 #0 Not tainted -------------------------------------------- kworker/0:1/9 is trying to acquire lock: ffff88812bfe5fd0 (&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: ffff88811a68dfd0 (&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/0:1/9: #0: ffff88810ce5f138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88810ce5f138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff88810ce5f138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline] #0: ffff88810ce5f138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline] #0: ffff88810ce5f138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline] #0: ffff88810ce5f138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376 #1: ffffc9000009fdb0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffff888105b8e190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #2: ffff888105b8e190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c0/0x4ed0 drivers/usb/core/hub.c:5739 #3: ffff88813dd81190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #3: ffff88813dd81190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x76/0x4b0 drivers/base/dd.c:1005 #4: ffff888115aef160 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #4: ffff888115aef160 (&dev->mutex){....}-{3:3}, at: __device_attach+0x76/0x4b0 drivers/base/dd.c:1005 #5: ffff88811a68dfd0 (&chip->mutex){+.+.}-{3:3}, at: pre_reset+0x213/0x290 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1503 stack backtrace: CPU: 0 PID: 9 Comm: kworker/0:1 Not tainted 6.4.0-rc1-syzkaller-00001-g986866c3dfb0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/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 3-1:129.166: error ioread32(CR_REG1): -11 usb 3-1: reset high-speed USB device number 124 using dummy_hcd usb 3-1: device descriptor read/64, error 64 usb 3-1: device descriptor read/64, error 64 usb 3-1: reset high-speed USB device number 124 using dummy_hcd usb 3-1: device descriptor read/64, error -71 usb 3-1: device firmware changed zd1211rw 3-1:129.126: couldn't reset usb device. Error number -19 zd1211rw 3-1:129.36: couldn't reset usb device. Error number -22 zd1211rw: probe of 3-1:129.36 failed with error -22 zd1211rw 3-1:129.5: couldn't reset usb device. Error number -22 zd1211rw: probe of 3-1:129.5 failed with error -22 usb 3-1: USB disconnect, device number 124 usb 3-1: new high-speed USB device number 125 using dummy_hcd usb 3-1: config 0 has an invalid interface number: 236 but max is 0 usb 3-1: config 0 has no interface number 0 usb 3-1: New USB device found, idVendor=17cc, idProduct=041d, bcdDevice=34.e7 usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 3-1: config 0 descriptor?? snd-usb-caiaq 3-1:0.236: can't set alt interface. usb 3-1: unable to init card! (ret=-5) snd-usb-caiaq: probe of 3-1:0.236 failed with error -5 usb 6-1: new high-speed USB device number 15 using dummy_hcd usb 6-1: Using ep0 maxpacket: 8 usb 6-1: config 1 interface 1 altsetting 1 bulk endpoint 0x82 has invalid maxpacket 32 usb 6-1: config 1 interface 1 altsetting 1 bulk endpoint 0x3 has invalid maxpacket 8 usb 6-1: New USB device found, idVendor=0525, idProduct=a4a1, bcdDevice= 0.40 usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 6-1: Product: э usb 6-1: Manufacturer: ঋ퓈α⏵㧬頽ꈓ礜줍抷觮ᛙ똖굝鍦ි施煢砏囶齯윕삕㖸⪎肬凧娛銶΁⫝稣뮙슉뺿羸냢ឥ퍄 usb 6-1: SerialNumber: ࠖ cdc_ncm 6-1:1.0: bind() failure cdc_ncm 6-1:1.1: CDC Union missing and no IAD found cdc_ncm 6-1:1.1: bind() failure usb 6-1: USB disconnect, device number 15 usb 6-1: new high-speed USB device number 16 using dummy_hcd usb 6-1: Using ep0 maxpacket: 8 usb 6-1: config 1 interface 1 altsetting 1 bulk endpoint 0x82 has invalid maxpacket 32 usb 6-1: config 1 interface 1 altsetting 1 bulk endpoint 0x3 has invalid maxpacket 8 usb 6-1: New USB device found, idVendor=0525, idProduct=a4a1, bcdDevice= 0.40 usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 6-1: Product: э usb 6-1: Manufacturer: ঋ퓈α⏵㧬頽ꈓ礜줍抷觮ᛙ똖굝鍦ි施煢砏囶齯윕삕㖸⪎肬凧娛銶΁⫝稣뮙슉뺿羸냢ឥ퍄 usb 6-1: SerialNumber: ࠖ cdc_ncm 6-1:1.0: bind() failure cdc_ncm 6-1:1.1: CDC Union missing and no IAD found cdc_ncm 6-1:1.1: bind() failure usb 6-1: USB disconnect, device number 16 usb 4-1: new high-speed USB device number 67 using dummy_hcd usb 4-1: device descriptor read/64, error 18 usb 4-1: device descriptor read/64, error 18 usb 4-1: new high-speed USB device number 68 using dummy_hcd usb 4-1: device descriptor read/64, error 18