===================================== WARNING: bad unlock balance detected! 6.12.0-rc4-syzkaller #0 Not tainted ------------------------------------- kworker/1:0/25 is trying to release lock (&q->q_usage_counter(queue)) at: [] blk_mq_update_tag_set_shared+0x66/0x140 block/blk-mq.c:4131 but there are no more locks to release! other info that might help us debug this: 7 locks held by kworker/1:0/25: #0: ffff888100ea5348 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff888100ea5348 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x246/0x5c0 kernel/workqueue.c:3310 #1: ffffc900000dbe58 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc900000dbe58 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x266/0x5c0 kernel/workqueue.c:3310 #2: ffff888109eb2190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #2: ffff888109eb2190 (&dev->mutex){....}-{3:3}, at: hub_event+0x7e/0x1b20 drivers/usb/core/hub.c:5849 #3: ffff888116002190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #3: ffff888116002190 (&dev->mutex){....}-{3:3}, at: usb_disconnect+0x80/0x290 drivers/usb/core/hub.c:2295 #4: ffff8881698d9960 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #4: ffff8881698d9960 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ffff8881698d9960 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x47/0x2a0 drivers/base/dd.c:1293 #5: ffff88817624a0e0 (&shost->scan_mutex){+.+.}-{3:3}, at: scsi_remove_host+0x18/0x180 drivers/scsi/hosts.c:169 #6: ffff88817624a2d0 (&set->tag_list_lock){+.+.}-{3:3}, at: blk_mq_del_queue_tag_set block/blk-mq.c:4139 [inline] #6: ffff88817624a2d0 (&set->tag_list_lock){+.+.}-{3:3}, at: blk_mq_exit_queue+0xa0/0x150 block/blk-mq.c:4461 stack backtrace: CPU: 1 UID: 0 PID: 25 Comm: kworker/1:0 Not tainted 6.12.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xa3/0x100 lib/dump_stack.c:120 print_unlock_imbalance_bug+0x182/0x1a0 kernel/locking/lockdep.c:5263 __lock_release kernel/locking/lockdep.c:5502 [inline] lock_release+0x1dc/0x2d0 kernel/locking/lockdep.c:5846 blk_unfreeze_release_lock block/blk.h:745 [inline] blk_mq_unfreeze_queue+0x6b/0x80 block/blk-mq.c:213 blk_mq_update_tag_set_shared+0x66/0x140 block/blk-mq.c:4131 blk_mq_del_queue_tag_set block/blk-mq.c:4145 [inline] blk_mq_exit_queue+0x10e/0x150 block/blk-mq.c:4461 blk_mq_destroy_queue+0xb0/0xe0 block/blk-mq.c:4284 __scsi_remove_device+0xe9/0x170 drivers/scsi/scsi_sysfs.c:1512 scsi_forget_host+0x3f/0x50 drivers/scsi/scsi_scan.c:2068 scsi_remove_host+0x84/0x180 drivers/scsi/hosts.c:181 quiesce_and_remove_host drivers/usb/storage/usb.c:949 [inline] usb_stor_disconnect+0x6a/0xb0 drivers/usb/storage/usb.c:1178 usb_unbind_interface+0xcd/0x250 drivers/usb/core/driver.c:461 device_remove drivers/base/dd.c:569 [inline] __device_release_driver drivers/base/dd.c:1273 [inline] device_release_driver_internal+0x1a4/0x2a0 drivers/base/dd.c:1296 bus_remove_device+0x147/0x190 drivers/base/bus.c:576 device_del+0x222/0x350 drivers/base/core.c:3864 usb_disable_device+0x78/0x1f0 drivers/usb/core/message.c:1418 usb_disconnect+0xfc/0x290 drivers/usb/core/hub.c:2304 hub_port_connect drivers/usb/core/hub.c:5361 [inline] hub_port_connect_change drivers/usb/core/hub.c:5661 [inline] port_event drivers/usb/core/hub.c:5821 [inline] hub_event+0xc2f/0x1b20 drivers/usb/core/hub.c:5903 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x2ab/0x5c0 kernel/workqueue.c:3310 worker_thread+0x23e/0x2e0 kernel/workqueue.c:3391 kthread+0xea/0x100 kernel/kthread.c:389 ret_from_fork+0x32/0x40 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 usb 7-1: new full-speed USB device number 3 using dummy_hcd usb 7-1: config 0 has an invalid interface number: 189 but max is 0 usb 7-1: config 0 has no interface number 0 usb 7-1: config 0 interface 189 altsetting 0 has an invalid descriptor for endpoint zero, skipping usb 7-1: config 0 interface 189 altsetting 0 has an endpoint descriptor with address 0xE3, changing to 0x83 usb 7-1: config 0 interface 189 altsetting 0 endpoint 0x83 has invalid maxpacket 33307, setting to 64 usb 7-1: config 0 interface 189 altsetting 0 endpoint 0xB has invalid wMaxPacketSize 0 usb 7-1: config 0 interface 189 altsetting 0 has 3 endpoint descriptors, different from the interface descriptor's value: 2 usb 7-1: New USB device found, idVendor=07b4, idProduct=010a, bcdDevice= 1.02 usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 7-1: Product: syz usb 7-1: Manufacturer: syz usb 7-1: SerialNumber: syz usb 7-1: config 0 descriptor?? ums-alauda 7-1:0.189: USB Mass Storage device detected scsi host4: usb-storage 7-1:0.189 scsi 1:0:0:0: Direct-Access Olympus MAUSB-10 (Alauda 0102 PQ: 0 ANSI: 0 CCS sd 1:0:0:0: Attached scsi generic sg1 type 0 scsi 1:0:0:1: Direct-Access Olympus MAUSB-10 (Alauda 0102 PQ: 0 ANSI: 0 CCS scsi 1:0:0:1: Attached scsi generic sg3 type 0 usb 4-1: USB disconnect, device number 4 usb 4-1: new full-speed USB device number 5 using dummy_hcd usb 4-1: config 0 has an invalid interface number: 189 but max is 0 usb 4-1: config 0 has no interface number 0 usb 4-1: config 0 interface 189 altsetting 0 has an invalid descriptor for endpoint zero, skipping usb 4-1: config 0 interface 189 altsetting 0 has an endpoint descriptor with address 0xE3, changing to 0x83 usb 4-1: config 0 interface 189 altsetting 0 endpoint 0x83 has invalid maxpacket 33307, setting to 64 usb 4-1: config 0 interface 189 altsetting 0 endpoint 0xB has invalid wMaxPacketSize 0 usb 4-1: config 0 interface 189 altsetting 0 has 3 endpoint descriptors, different from the interface descriptor's value: 2 usb 4-1: New USB device found, idVendor=07b4, idProduct=010a, bcdDevice= 1.02 usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 4-1: Product: syz usb 4-1: Manufacturer: syz usb 4-1: SerialNumber: syz usb 4-1: config 0 descriptor?? ums-alauda 4-1:0.189: USB Mass Storage device detected scsi host4: usb-storage 4-1:0.189 scsi 5:0:0:0: Direct-Access Olympus MAUSB-10 (Alauda 0102 PQ: 0 ANSI: 0 CCS sd 5:0:0:0: Attached scsi generic sg4 type 0 scsi 5:0:0:1: Direct-Access Olympus MAUSB-10 (Alauda 0102 PQ: 0 ANSI: 0 CCS sd 5:0:0:1: Attached scsi generic sg1 type 0