INFO: task kworker/0:5:17576 blocked for more than 143 seconds. Not tainted 5.12.0-rc1-next-20210302-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:5 state:D stack:27968 pid:17576 ppid: 2 flags:0x00004000 Workqueue: usb_hub_wq hub_event Call Trace: context_switch kernel/sched/core.c:4322 [inline] __schedule+0x90c/0x21a0 kernel/sched/core.c:5073 schedule+0xcf/0x270 kernel/sched/core.c:5152 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:5211 __mutex_lock_common kernel/locking/mutex.c:1023 [inline] __mutex_lock+0x81f/0x1120 kernel/locking/mutex.c:1093 hub_port_init+0x1b5/0x2dd0 drivers/usb/core/hub.c:4582 hub_port_connect drivers/usb/core/hub.c:5155 [inline] hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] port_event drivers/usb/core/hub.c:5509 [inline] hub_event+0x2190/0x4320 drivers/usb/core/hub.c:5591 process_one_work+0x98d/0x1600 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Showing all locks held in the system: 5 locks held by kworker/1:0/19: #0: ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] #0: ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] #0: ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc90000d97da8 ( (work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff888144994218 ( &dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] &dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff888144997578 ( &port_dev->status_lock ){+.+.}-{3:3} , at: usb_lock_port drivers/usb/core/hub.c:3030 [inline] , at: hub_port_connect drivers/usb/core/hub.c:5154 [inline] , at: hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] , at: port_event drivers/usb/core/hub.c:5509 [inline] , at: hub_event+0x2178/0x4320 drivers/usb/core/hub.c:5591 #4: ffff8881448ef368 ( hcd->address0_mutex ){+.+.}-{3:3} , at: hub_port_init+0x1b5/0x2dd0 drivers/usb/core/hub.c:4582 1 lock held by khungtaskd/1664: #0: ffffffff8bf741e0 ( rcu_read_lock ){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6327 5 locks held by kworker/1:2/3689: 2 locks held by kworker/u4:5/4435: 5 locks held by kworker/0:3/4620: #0: ffff888015562938 ( (wq_completion)usb_hub_wq ){+.+.}-{0:0} , at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] , at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] , at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] , at: set_work_data kernel/workqueue.c:616 [inline] , at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] , at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc9000969fda8 ( (work_completion)(&hub->events) ){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff888144af1218 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:740 [inline] , at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff8880b9c35198 (&rq->lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1321 [inline] (&rq->lock){-.-.}-{2:2}, at: __schedule+0x217/0x21a0 kernel/sched/core.c:4990 #4: ffff8880b9c1f948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x305/0x440 kernel/sched/psi.c:833 1 lock held by in:imklog/8120: 5 locks held by kworker/1:1/8424: #0: ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc9000173fda8 ( (work_completion)(&hub->events) ){+.+.}-{0:0} , at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff888144950218 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:740 [inline] , at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff888144953578 ( &port_dev->status_lock ){+.+.}-{3:3} , at: usb_lock_port drivers/usb/core/hub.c:3030 [inline] , at: hub_port_connect drivers/usb/core/hub.c:5154 [inline] , at: hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] , at: port_event drivers/usb/core/hub.c:5509 [inline] , at: hub_event+0x2178/0x4320 drivers/usb/core/hub.c:5591 #4: ffff8881448c8968 ( hcd->address0_mutex ){+.+.}-{3:3} , at: hub_port_init+0x1b5/0x2dd0 drivers/usb/core/hub.c:4582 5 locks held by kworker/0:0/8428: #0: ffff888015562938 ( (wq_completion)usb_hub_wq ){+.+.}-{0:0} , at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] , at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] , at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] , at: set_work_data kernel/workqueue.c:616 [inline] , at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] , at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc9000176fda8 ( (work_completion)(&hub->events) ){+.+.}-{0:0} , at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff888144a30218 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:740 [inline] , at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff888144a33578 ( &port_dev->status_lock ){+.+.}-{3:3} , at: usb_lock_port drivers/usb/core/hub.c:3030 [inline] , at: hub_port_connect drivers/usb/core/hub.c:5154 [inline] , at: hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] , at: port_event drivers/usb/core/hub.c:5509 [inline] , at: hub_event+0x2178/0x4320 drivers/usb/core/hub.c:5591 #4: ffff8881449a2d68 ( hcd->address0_mutex ){+.+.}-{3:3} , at: hub_port_init+0x1b5/0x2dd0 drivers/usb/core/hub.c:4582 5 locks held by kworker/1:4/8440: #0: ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc900017efda8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff8881448b4218 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] #2: ffff8881448b4218 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff8881448b7578 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3030 [inline] ffff8881448b7578 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5154 [inline] ffff8881448b7578 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] ffff8881448b7578 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5509 [inline] ffff8881448b7578 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2178/0x4320 drivers/usb/core/hub.c:5591 #4: ffff88801bf0ee68 ( hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_init+0x1b5/0x2dd0 drivers/usb/core/hub.c:4582 5 locks held by kworker/1:6/8451: #0: ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc90001b7fda8 ( (work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff88814496e218 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:740 [inline] , at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff888144989578 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3030 [inline] (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5154 [inline] (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5509 [inline] (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2178/0x4320 drivers/usb/core/hub.c:5591 #4: ffff8881448ef368 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_init+0x1b5/0x2dd0 drivers/usb/core/hub.c:4582 5 locks held by kworker/1:7/8453: #0: ffff888015562938 ( (wq_completion)usb_hub_wq ){+.+.}-{0:0} , at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] , at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] , at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] , at: set_work_data kernel/workqueue.c:616 [inline] , at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] , at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc900017cfda8 ( (work_completion)(&hub->events) ){+.+.}-{0:0} , at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff88801c803218 ( &dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:740 [inline] &dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff888144ab6578 ( &port_dev->status_lock ){+.+.}-{3:3} , at: usb_lock_port drivers/usb/core/hub.c:3030 [inline] , at: hub_port_connect drivers/usb/core/hub.c:5154 [inline] , at: hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] , at: port_event drivers/usb/core/hub.c:5509 [inline] , at: hub_event+0x2178/0x4320 drivers/usb/core/hub.c:5591 #4: ffff8881447e7068 ( hcd->address0_mutex ){+.+.}-{3:3} , at: hub_port_init+0x1b5/0x2dd0 drivers/usb/core/hub.c:4582 5 locks held by kworker/1:9/8461: #0: ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] ffff888015562938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc90001bafda8 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff8881449fa218 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:740 [inline] , at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff8881449fd578 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3030 [inline] (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5154 [inline] (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5509 [inline] (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2178/0x4320 drivers/usb/core/hub.c:5591 #4: ffff8881449a2d68 ( hcd->address0_mutex ){+.+.}-{3:3} , at: hub_port_init+0x1b5/0x2dd0 drivers/usb/core/hub.c:4582 5 locks held by kworker/1:10/8463: #0: ffff888015562938 ( (wq_completion)usb_hub_wq ){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] ){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] ){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] ){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline] ){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline] ){+.+.}-{0:0}, at: process_one_work+0x871/0x1600 kernel/workqueue.c:2246 #1: ffffc90001bcfda8 ( (work_completion)(&hub->events) ){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2250 #2: ffff888144ab4218 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:740 [inline] , at: hub_event+0x1c1/0x4320 drivers/usb/core/hub.c:5537 #3: ffff88801c7f0578 ( &port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3030 [inline] &port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5154 [inline] &port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] &port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5509 [inline] &port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2178/0x4320 drivers/usb/core/hub.c:5591 #4: ffff8881449c7f68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_init+0x1b5/0x2dd0 drivers/usb/core/hub.c:4582 5 locks held by kworker/0:5/17576: #0: ffff888015562938 (