INFO: task udevd:9244 blocked for more than 143 seconds.
Not tainted 6.5.0-rc4-syzkaller-00111-gf176638af476 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd state:D stack:26432 pid:9244 ppid:2375 flags:0x00004002
Call Trace:
context_switch kernel/sched/core.c:5381 [inline]
__schedule+0xc79/0x30a0 kernel/sched/core.c:6710
schedule+0xe7/0x1b0 kernel/sched/core.c:6786
blk_queue_enter+0x3aa/0x620 block/blk-core.c:326
blk_mq_alloc_request+0x416/0x860 block/blk-mq.c:592
scsi_alloc_request drivers/scsi/scsi_lib.c:1139 [inline]
scsi_execute_cmd+0x129/0x770 drivers/scsi/scsi_lib.c:217
ioctl_internal_command.constprop.0+0xe6/0x3e0 drivers/scsi/scsi_ioctl.c:79
scsi_set_medium_removal+0x12d/0x1f0 drivers/scsi/scsi_ioctl.c:139
sd_release+0x10b/0x130 drivers/scsi/sd.c:1423
blkdev_put_whole+0xa5/0xe0 block/bdev.c:680
blkdev_put+0x40f/0x8e0 block/bdev.c:915
blkdev_release+0x82/0xa0 block/fops.c:532
__fput+0x3fd/0xac0 fs/file_table.c:384
task_work_run+0x14d/0x240 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+0x44/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f04343200a8
RSP: 002b:00007ffd24a619f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00007f04341f4ae0 RCX: 00007f04343200a8
RDX: 000055fb839a991b RSI: 00007ffd24a611f8 RDI: 0000000000000008
RBP: 000055fedc76f550 R08: 0000000000000006 R09: 3239d50526cddb00
R10: 000000000000010f R11: 0000000000000246 R12: 0000000000000002
R13: 000055fedc75d250 R14: 0000000000000008 R15: 000055fedc74a910
INFO: task kworker/1:1:11007 blocked for more than 143 seconds.
Not tainted 6.5.0-rc4-syzkaller-00111-gf176638af476 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:1 state:D stack:22976 pid:11007 ppid:2 flags:0x00004000
Workqueue: usb_hub_wq hub_event
Call Trace:
context_switch kernel/sched/core.c:5381 [inline]
__schedule+0xc79/0x30a0 kernel/sched/core.c:6710
schedule+0xe7/0x1b0 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+0x967/0x1340 kernel/locking/mutex.c:747
del_gendisk+0x276/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+0x44a/0x610 drivers/base/dd.c:1293
bus_remove_device+0x22c/0x420 drivers/base/bus.c:574
device_del+0x39a/0xa40 drivers/base/core.c:3814
__scsi_remove_device+0x30c/0x3f0 drivers/scsi/scsi_sysfs.c:1489
scsi_forget_host+0x138/0x190 drivers/scsi/scsi_scan.c:1987
scsi_remove_host+0x153/0x430 drivers/scsi/hosts.c:181
quiesce_and_remove_host drivers/usb/storage/usb.c:867 [inline]
usb_stor_disconnect+0x121/0x270 drivers/usb/storage/usb.c:1087
usb_unbind_interface+0x1dd/0x8d0 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+0x44a/0x610 drivers/base/dd.c:1293
bus_remove_device+0x22c/0x420 drivers/base/bus.c:574
device_del+0x39a/0xa40 drivers/base/core.c:3814
usb_disable_device+0x36c/0x7f0 drivers/usb/core/message.c:1416
usb_disconnect+0x2e1/0x890 drivers/usb/core/hub.c:2252
hub_port_connect drivers/usb/core/hub.c:5268 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5568 [inline]
port_event drivers/usb/core/hub.c:5728 [inline]
hub_event+0x1be0/0x4f30 drivers/usb/core/hub.c:5810
process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597
worker_thread+0x687/0x1110 kernel/workqueue.c:2748
kthread+0x33a/0x430 kernel/kthread.c:389
ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff87ea74b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x2c/0xe20 kernel/rcu/tasks.h:522
1 lock held by rcu_tasks_trace/13:
#0: ffffffff87ea71b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x2c/0xe20 kernel/rcu/tasks.h:522
1 lock held by khungtaskd/28:
#0:
ffffffff87ea80c0
(rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6615
2 locks held by getty/2433:
#0: ffff888114c5a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
#1: ffffc900000452f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfcb/0x1480 drivers/tty/n_tty.c:2187
3 locks held by kworker/0:6/5705:
#0: ffff888100070d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline]
#0: ffff888100070d38 ((wq_completion)events){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline]
#0: ffff888100070d38 ((wq_completion)events){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline]
#0: ffff888100070d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline]
#0: ffff888100070d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline]
#0: ffff888100070d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline]
#0: ffff888100070d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x96a/0x16f0 kernel/workqueue.c:2567
#1: ffffc9000525fd80 ((work_completion)(&intf->reset_ws)){+.+.}-{0:0}, at: process_one_work+0x99e/0x16f0 kernel/workqueue.c:2571
#2: ffff88811a3ff190 (&dev->mutex){....}-{3:3}, at: device_trylock include/linux/device.h:968 [inline]
#2: ffff88811a3ff190 (&dev->mutex){....}-{3:3}, at: usb_lock_device_for_reset+0x184/0x330 drivers/usb/core/usb.c:900
5 locks held by kworker/1:7/5903:
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline]
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline]
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline]
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline]
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline]
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline]
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x96a/0x16f0 kernel/workqueue.c:2567
#1: ffffc9000d207d80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x99e/0x16f0 kernel/workqueue.c:2571
#2: ffff8881063b7190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline]
#2: ffff8881063b7190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1be/0x4f30 drivers/usb/core/hub.c:5756
#3: ffff88810f674190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline]
#3: ffff88810f674190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7f/0x4b0 drivers/base/dd.c:1003
#4: ffff88811e150160 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline]
#4: ffff88811e150160 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7f/0x4b0 drivers/base/dd.c:1003
1 lock held by udevd/9244:
#0: ffff888132c59358 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xb0/0x8e0 block/bdev.c:901
5 locks held by udevd/9672:
#0: ffff888104386d48 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x99/0xb0 fs/file.c:1046
#1: ffff8881057f40a0 (&p->lock){+.+.}-{3:3}, at: seq_read_iter+0xda/0x1280 fs/seq_file.c:182
#2: ffff888119015088 (&of->mutex){+.+.}-{3:3}, at: kernfs_seq_start+0x4b/0x460 fs/kernfs/file.c:154
#3: ffff888112936e88 (kn->active#28){++++}-{0:0}, at: kernfs_seq_start+0x6f/0x460 fs/kernfs/file.c:155
#4: ffff88810f674190 (&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:963 [inline]
#4: ffff88810f674190 (&dev->mutex){....}-{3:3}, at: product_show+0x26/0xa0 drivers/usb/core/sysfs.c:141
8 locks held by kworker/1:1/11007:
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline]
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline]
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline]
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline]
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline]
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline]
#0: ffff88810c67d938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x96a/0x16f0 kernel/workqueue.c:2567
#1: ffffc9000d55fd80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x99e/0x16f0 kernel/workqueue.c:2571
#2: ffff888106797190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline]
#2: ffff888106797190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1be/0x4f30 drivers/usb/core/hub.c:5756
#3: ffff88811b134190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline]
#3: ffff88811b134190 (&dev->mutex){....}-{3:3}, at: usb_disconnect+0x10a/0x890 drivers/usb/core/hub.c:2243
#4: ffff8881169ce160 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline]
#4: ffff8881169ce160 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1093 [inline]
#4: ffff8881169ce160 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xa4/0x610 drivers/base/dd.c:1290
#5: ffff888133f500e0 (&shost->scan_mutex){+.+.}-{3:3}, at: scsi_remove_host+0x2c/0x430 drivers/scsi/hosts.c:169
#6: ffff88810feb6370 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:958 [inline]
#6: ffff88810feb6370 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1093 [inline]
#6: ffff88810feb6370 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xa4/0x610 drivers/base/dd.c:1290
#7: ffff888132c59358 (&disk->open_mutex){+.+.}-{3:3}, at: del_gendisk+0x276/0xab0 block/genhd.c:660
1 lock held by syz-executor.5/16172:
#0: ffff88811bda4c78
(
&hiddev->existancelock
){+.+.}-{3:3}
, at: hiddev_ioctl+0x170/0x1570 drivers/hid/usbhid/hiddev.c:610
2 locks held by syz-executor.1/16174:
#0:
ffffffff888df590
(
minor_rwsem){++++}-{3:3}
, at: usb_open+0x27/0x2e0 drivers/usb/core/file.c:38
#1: ffff88811bda4c78 (&hiddev->existancelock){+.+.}-{3:3}, at: hiddev_open+0xca/0x6a0 drivers/hid/usbhid/hiddev.c:301
1 lock held by syz-executor.4/16184:
#0: ffffffff87eb3578 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline]
#0: ffffffff87eb3578 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x69e/0x7e0 kernel/rcu/tree_exp.h:992
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.5.0-rc4-syzkaller-00111-gf176638af476 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x277/0x380 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x27b/0x2e0 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+0xf29/0x11b0 kernel/hung_task.c:379
kthread+0x33a/0x430 kernel/kthread.c:389
ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline]
NMI backtrace for cpu 1 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline]
NMI backtrace for cpu 1 skipped: idling at acpi_safe_halt+0x1b/0x20 drivers/acpi/processor_idle.c:112