zd1211rw 3-1:0.144: error ioread32(CR_REG1): -11 ============================================ WARNING: possible recursive locking detected 6.1.0-rc3-syzkaller-00026-ga8bc8cc193c6 #0 Not tainted -------------------------------------------- kworker/0:4/4097 is trying to acquire lock: ffff88811b315f90 (&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: ffff888132cc5f90 (&chip->mutex){+.+.}-{3:3}, at: pre_reset+0x20f/0x280 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:4/4097: #0: ffff888109c85138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888109c85138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888109c85138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888109c85138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888109c85138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888109c85138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc90001b1fda8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 #2: ffff88810f6d4190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:835 [inline] #2: ffff88810f6d4190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1bc/0x45c0 drivers/usb/core/hub.c:5681 #3: ffff8881339c8190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:835 [inline] #3: ffff8881339c8190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x76/0x530 drivers/base/dd.c:983 #4: ffff888109971118 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:835 [inline] #4: ffff888109971118 (&dev->mutex){....}-{3:3}, at: __device_attach+0x76/0x530 drivers/base/dd.c:983 #5: ffff888132cc5f90 (&chip->mutex){+.+.}-{3:3}, at: pre_reset+0x20f/0x280 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1503 stack backtrace: CPU: 0 PID: 4097 Comm: kworker/0:4 Not tainted 6.1.0-rc3-syzkaller-00026-ga8bc8cc193c6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 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:2990 [inline] check_deadlock kernel/locking/lockdep.c:3033 [inline] validate_chain kernel/locking/lockdep.c:3818 [inline] __lock_acquire.cold+0x116/0x3a7 kernel/locking/lockdep.c:5055 lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1df/0x630 kernel/locking/lockdep.c:5633 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x12f/0x1350 kernel/locking/mutex.c:747 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+0x195/0x280 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1501 usb_reset_device+0x417/0xac0 drivers/usb/core/hub.c:6108 probe+0x10f/0x590 drivers/net/wireless/zydas/zd1211rw/zd_usb.c:1370 usb_probe_interface+0x30b/0x7f0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:560 [inline] really_probe+0x249/0xb90 drivers/base/dd.c:639 __driver_probe_device+0x1df/0x4d0 drivers/base/dd.c:778 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:808 __device_attach_driver+0x1d0/0x2e0 drivers/base/dd.c:936 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:427 __device_attach+0x1e4/0x530 drivers/base/dd.c:1008 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:487 device_add+0xbd5/0x1e90 drivers/base/core.c:3517 usb_set_configuration+0x1019/0x1900 drivers/usb/core/message.c:2170 usb_generic_driver_probe+0xba/0x100 drivers/usb/core/generic.c:238 usb_probe_device+0xd4/0x2c0 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:560 [inline] really_probe+0x249/0xb90 drivers/base/dd.c:639 __driver_probe_device+0x1df/0x4d0 drivers/base/dd.c:778 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:808 __device_attach_driver+0x1d0/0x2e0 drivers/base/dd.c:936 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:427 __device_attach+0x1e4/0x530 drivers/base/dd.c:1008 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:487 device_add+0xbd5/0x1e90 drivers/base/core.c:3517 usb_new_device.cold+0x685/0x10ad drivers/usb/core/hub.c:2573 hub_port_connect drivers/usb/core/hub.c:5353 [inline] hub_port_connect_change drivers/usb/core/hub.c:5497 [inline] port_event drivers/usb/core/hub.c:5653 [inline] hub_event+0x26c7/0x45c0 drivers/usb/core/hub.c:5735 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2ea/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 zd1211rw 3-1:0.22: error ioread32(CR_REG1): -11 usb 3-1: reset full-speed USB device number 58 using dummy_hcd usb 3-1: device firmware changed zd1211rw 3-1:0.243: couldn't reset usb device. Error number -19 usb 3-1: USB disconnect, device number 58 usb 3-1: new full-speed USB device number 59 using dummy_hcd usb 3-1: not running at top speed; connect to a high speed hub usb 3-1: config 0 has an invalid interface number: 144 but max is 1 usb 3-1: config 0 has an invalid interface number: 22 but max is 1 usb 3-1: config 0 contains an unexpected descriptor of type 0x2, skipping usb 3-1: config 0 has an invalid descriptor of length 115, skipping remainder of the config usb 3-1: config 0 has no interface number 0 usb 3-1: config 0 has no interface number 1 usb 3-1: config 0 interface 144 altsetting 1 endpoint 0xC has invalid maxpacket 1023, setting to 64 usb 3-1: config 0 interface 144 altsetting 1 endpoint 0x4 has invalid maxpacket 1024, setting to 64 usb 3-1: config 0 interface 22 altsetting 0 has 0 endpoint descriptors, different from the interface descriptor's value: 16 usb 3-1: config 0 interface 144 has no altsetting 0 usb 3-1: New USB device found, idVendor=0471, idProduct=1237, bcdDevice=d0.1f usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 3-1: Product: 㐁 usb 3-1: Manufacturer: Ќ usb 3-1: SerialNumber: syz usb 3-1: config 0 descriptor?? usb 3-1: reset full-speed USB device number 59 using dummy_hcd usb 3-1: device descriptor read/64, error -71 ieee80211 phy156: Selected rate control algorithm 'minstrel_ht' zd1211rw 3-1:0.144: phy156 zd1211rw 3-1:0.144: error ioread32(CR_REG1): -11 usb 3-1: reset full-speed USB device number 59 using dummy_hcd usb 3-1: device descriptor read/64, error -71 ieee80211 phy160: Selected rate control algorithm 'minstrel_ht' zd1211rw 3-1:0.22: phy160 usb 5-1: new high-speed USB device number 118 using dummy_hcd usb 5-1: Using ep0 maxpacket: 16 usb 5-1: config 1 interface 0 altsetting 128 bulk endpoint 0x1 has invalid maxpacket 64 usb 5-1: config 1 interface 0 altsetting 128 has 2 endpoint descriptors, different from the interface descriptor's value: 1 usb 5-1: config 1 interface 0 has no altsetting 0 usb 5-1: New USB device found, idVendor=0525, idProduct=a4a8, bcdDevice= 0.40 usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 5-1: Product: 邯튻ꑿ዗覮ᠯ鰺ส札೹蹰➞㰞謄ჭ빀셺⩙㋁ﰤ託犹ퟯﳔኡ庱臡⫣迩ꏟ뙺螎莏ⱞ댺옧柜⪴䤾漇᷼嫬女衬❊脺ᩧ꧜൰Ⱙ鍻㐠꛿뇭顝郋厈⓺㏟ݮǚ扔ꌱ뮶嗙с疲䆭ᄿ쪎 usb 5-1: Manufacturer: М usb 5-1: SerialNumber: ᠁