INFO: task kworker/1:4:5380 blocked for more than 143 seconds. Not tainted 6.5.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:4 state:D stack:22000 pid:5380 ppid:2 flags:0x00004000 Workqueue: usb_hub_wq hub_event Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xaa9/0x2f00 kernel/sched/core.c:6710 schedule+0xde/0x1a0 kernel/sched/core.c:6786 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 del_gendisk+0x273/0xab0 block/genhd.c:660 sd_remove+0x89/0xf0 drivers/scsi/sd.c:3735 device_remove drivers/base/dd.c:569 [inline] device_remove+0x11f/0x170 drivers/base/dd.c:561 __device_release_driver drivers/base/dd.c:1270 [inline] device_release_driver_internal+0x443/0x610 drivers/base/dd.c:1293 bus_remove_device+0x22c/0x420 drivers/base/bus.c:574 device_del+0x399/0xa30 drivers/base/core.c:3814 __scsi_remove_device+0x315/0x3f0 drivers/scsi/scsi_sysfs.c:1489 scsi_forget_host+0x137/0x190 drivers/scsi/scsi_scan.c:1987 scsi_remove_host+0x139/0x440 drivers/scsi/hosts.c:181 quiesce_and_remove_host drivers/usb/storage/usb.c:867 [inline] usb_stor_disconnect+0x119/0x270 drivers/usb/storage/usb.c:1087 usb_unbind_interface+0x1dc/0x8e0 drivers/usb/core/driver.c:458 device_remove drivers/base/dd.c:569 [inline] device_remove+0x11f/0x170 drivers/base/dd.c:561 __device_release_driver drivers/base/dd.c:1270 [inline] device_release_driver_internal+0x443/0x610 drivers/base/dd.c:1293 bus_remove_device+0x22c/0x420 drivers/base/bus.c:574 device_del+0x399/0xa30 drivers/base/core.c:3814 usb_disable_device+0x360/0x7b0 drivers/usb/core/message.c:1420 usb_disconnect+0x2db/0x8a0 drivers/usb/core/hub.c:2253 hub_port_connect drivers/usb/core/hub.c:5261 [inline] hub_port_connect_change drivers/usb/core/hub.c:5566 [inline] port_event drivers/usb/core/hub.c:5726 [inline] hub_event+0x2073/0x4ed0 drivers/usb/core/hub.c:5808 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2597 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2748 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task udevd:10467 blocked for more than 143 seconds. Not tainted 6.5.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:27296 pid:10467 ppid:2373 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0xaa9/0x2f00 kernel/sched/core.c:6710 schedule+0xde/0x1a0 kernel/sched/core.c:6786 blk_queue_enter+0x3b8/0x5c0 block/blk-core.c:326 blk_mq_alloc_request+0x1c9/0x250 block/blk-mq.c:580 scsi_alloc_request drivers/scsi/scsi_lib.c:1139 [inline] scsi_execute_cmd+0x115/0x760 drivers/scsi/scsi_lib.c:217 ioctl_internal_command.constprop.0+0xd7/0x3d0 drivers/scsi/scsi_ioctl.c:79 scsi_set_medium_removal drivers/scsi/scsi_ioctl.c:139 [inline] scsi_set_medium_removal+0x118/0x1e0 drivers/scsi/scsi_ioctl.c:124 sd_release+0x10b/0x130 drivers/scsi/sd.c:1423 blkdev_put_whole+0xa5/0xe0 block/bdev.c:680 blkdev_put+0x40e/0x8a0 block/bdev.c:915 blkdev_release+0x82/0xa0 block/fops.c:532 __fput+0x40c/0xad0 fs/file_table.c:384 task_work_run+0x16f/0x270 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x1e4/0x1f0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f70b0d820a8 RSP: 002b:00007fffc8a9d968 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 00007f70b0c56ae0 RCX: 00007f70b0d820a8 RDX: 000055afbc09cedc RSI: 00007fffc8a9d168 RDI: 0000000000000008 RBP: 000055aae6a572c0 R08: 0000000000000006 R09: 41ed8b35bb73fb25 R10: 000000000000010f R11: 0000000000000246 R12: 0000000000000002 R13: 000055aae6a6cfc0 R14: 0000000000000008 R15: 000055aae6a56910 Showing all locks held in the system: 6 locks held by kworker/0:0/7: #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2567 #1: ffffc9000007fdb0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2571 #2: ffff888105fd3190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] #2: ffff888105fd3190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c0/0x4ed0 drivers/usb/core/hub.c:5754 #3: ffff888105fd6500 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3162 [inline] #3: ffff888105fd6500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5318 [inline] #3: ffff888105fd6500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5566 [inline] #3: ffff888105fd6500 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5726 [inline] #3: ffff888105fd6500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2847/0x4ed0 drivers/usb/core/hub.c:5808 #4: ffff888103b3c568 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5319 [inline] #4: ffff888103b3c568 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5566 [inline] #4: ffff888103b3c568 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5726 [inline] #4: ffff888103b3c568 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x287c/0x4ed0 drivers/usb/core/hub.c:5808 #5: ffffffff886c8070 (ehci_cf_port_reset_rwsem){.+.+}-{3:3}, at: hub_port_reset+0x189/0x1dd0 drivers/usb/core/hub.c:2977 5 locks held by kworker/0:1/9: #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2567 #1: ffffc9000009fdb0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2571 #2: ffff888106323190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] #2: ffff888106323190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c0/0x4ed0 drivers/usb/core/hub.c:5754 #3: ffff888106326500 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3162 [inline] #3: ffff888106326500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5318 [inline] #3: ffff888106326500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5566 [inline] #3: ffff888106326500 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5726 [inline] #3: ffff888106326500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2847/0x4ed0 drivers/usb/core/hub.c:5808 #4: ffff888104798d68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5319 [inline] #4: ffff888104798d68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5566 [inline] #4: ffff888104798d68 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5726 [inline] #4: ffff888104798d68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x287c/0x4ed0 drivers/usb/core/hub.c:5808 1 lock held by rcu_tasks_kthre/12: #0: ffffffff87ca6070 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522 1 lock held by rcu_tasks_trace/13: #0: ffffffff87ca5d70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522 6 locks held by kworker/1:1/27: 1 lock held by khungtaskd/28: #0: ffffffff87ca6c80 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6615 2 locks held by getty/2431: #0: ffff88810bb44098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900000452f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xf08/0x13f0 drivers/tty/n_tty.c:2187 5 locks held by kworker/0:3/5283: #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2567 #1: ffffc90001877db0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2571 #2: ffff888105fb3190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] #2: ffff888105fb3190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c0/0x4ed0 drivers/usb/core/hub.c:5754 #3: ffff88811acb6190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] #3: ffff88811acb6190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x76/0x4b0 drivers/base/dd.c:1003 #4: ffff88810ba48160 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] #4: ffff88810ba48160 (&dev->mutex){....}-{3:3}, at: __device_attach+0x76/0x4b0 drivers/base/dd.c:1003 6 locks held by kworker/1:3/5298: 8 locks held by kworker/1:4/5380: #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2567 #1: ffffc90001b2fdb0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2571 #2: ffff888106343190 ( &dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] &dev->mutex){....}-{3:3}, at: hub_event+0x1c0/0x4ed0 drivers/usb/core/hub.c:5754 #3: ffff8881435a4190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] (&dev->mutex){....}-{3:3}, at: usb_disconnect+0xff/0x8a0 drivers/usb/core/hub.c:2244 #4: ffff888116af6160 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] #4: ffff888116af6160 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1093 [inline] #4: ffff888116af6160 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xa4/0x610 drivers/base/dd.c:1290 #5: ffff88811f8440e0 (&shost->scan_mutex){+.+.}-{3:3}, at: scsi_remove_host+0x2c/0x440 drivers/scsi/hosts.c:169 #6: ffff8881430d0370 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] #6: ffff8881430d0370 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1093 [inline] #6: ffff8881430d0370 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xa4/0x610 drivers/base/dd.c:1290 #7: ffff88810be6e358 (&disk->open_mutex){+.+.}-{3:3}, at: del_gendisk+0x273/0xab0 block/genhd.c:660 4 locks held by kworker/1:5/5404: #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline] #0: ffff88810c643138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2567 #1: ffffc90001d1fdb0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2571 #2: ffff8881063db190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline] #2: ffff8881063db190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c0/0x4ed0 drivers/usb/core/hub.c:5754 #3: ffff8881063de500 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3162 [inline] #3: ffff8881063de500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0xbb9/0x4ed0 drivers/usb/core/hub.c:5807 3 locks held by udevd/9896: 1 lock held by udevd/10467: #0: ffff88810be6e358 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xb0/0x8a0 block/bdev.c:901 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x273/0x2d0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline] NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline] NMI backtrace for cpu 0 skipped: idling at __intel_idle_hlt drivers/idle/intel_idle.c:205 [inline] NMI backtrace for cpu 0 skipped: idling at intel_idle_hlt+0x23/0x30 drivers/idle/intel_idle.c:224