INFO: task udevd:5448 blocked in I/O wait for more than 430 seconds. Tainted: G W L syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:0 pid:5448 tgid:5448 ppid:3197 task_flags:0x400140 flags:0x00000011 Call trace: __switch_to+0x20c/0x520 arch/arm64/kernel/process.c:775 (T) context_switch kernel/sched/core.c:5520 [inline] __schedule+0xf98/0x34f4 kernel/sched/core.c:7270 __schedule_loop kernel/sched/core.c:7347 [inline] schedule+0xcc/0x288 kernel/sched/core.c:7362 io_schedule+0xac/0x120 kernel/sched/core.c:8190 folio_wait_bit_common+0x2a0/0x660 mm/filemap.c:1329 folio_put_wait_locked mm/filemap.c:1498 [inline] do_read_cache_folio+0x238/0x3ec mm/filemap.c:4138 read_cache_folio+0x44/0x74 mm/filemap.c:4188 read_mapping_folio include/linux/pagemap.h:1015 [inline] read_part_sector+0xa4/0x5d8 block/partitions/core.c:724 msdos_partition+0xec/0x1d5c block/partitions/msdos.c:571 check_partition block/partitions/core.c:143 [inline] blk_add_partitions block/partitions/core.c:591 [inline] bdev_disk_changed+0x4e8/0xe90 block/partitions/core.c:695 blkdev_get_whole+0x144/0x1f0 block/bdev.c:793 bdev_open+0x1d4/0xa70 block/bdev.c:1002 blkdev_open+0x270/0x3f8 block/fops.c:674 do_dentry_open+0x37c/0xfe8 fs/open.c:996 vfs_open+0x5c/0x300 fs/open.c:1101 do_open fs/namei.c:4837 [inline] path_openat+0x12d4/0x1e40 fs/namei.c:5000 do_file_open+0x18c/0x380 fs/namei.c:5029 do_sys_openat2+0xdc/0x180 fs/open.c:1417 do_sys_open fs/open.c:1423 [inline] __do_sys_openat fs/open.c:1439 [inline] __se_sys_openat fs/open.c:1434 [inline] __arm64_sys_openat+0x134/0x1e0 fs/open.c:1434 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x74/0x240 arch/arm64/kernel/syscall.c:49 el0_svc_common.constprop.0+0xac/0x230 arch/arm64/kernel/syscall.c:121 do_el0_svc+0x40/0x58 arch/arm64/kernel/syscall.c:140 el0_svc+0x58/0x2a4 arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0xa0/0xe4 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 Showing all locks held in the system: locks held by khungtaskd/32: 1, last CPU#0: #0: ffff8000879d1660 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:847 [inline] #0: ffff8000879d1660 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x40/0x190 kernel/locking/lockdep.c:6793 locks held by klogd/3186: 1, last CPU#0: #0: ffff8000879d1660 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:847 [inline] #0: ffff8000879d1660 (rcu_read_lock){....}-{1:3}, at: sock_def_readable+0x90/0x5d0 net/core/sock.c:3655 locks held by getty/3323: 2, on CPU#1: #0: ffff000018ca50a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80008dcab2e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x420/0xec0 drivers/tty/n_tty.c:2211 locks held by syz-executor/4606: 1, last CPU#0: #0: ffff000021b07b00 (&sb->s_type->i_mutex_key#15){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:1025 [inline] #0: ffff000021b07b00 (&sb->s_type->i_mutex_key#15){+.+.}-{4:4}, at: __sock_release+0x68/0x1f8 net/socket.c:734 locks held by udevd/5445: 2, last CPU#0: #0: ffff0000130c0460 (sb_writers#6){.+.+}-{0:0}, at: percpu_down_read_freezable include/linux/percpu-rwsem.h:83 [inline] #0: ffff0000130c0460 (sb_writers#6){.+.+}-{0:0}, at: __sb_start_write include/linux/fs/super.h:19 [inline] #0: ffff0000130c0460 (sb_writers#6){.+.+}-{0:0}, at: sb_start_write include/linux/fs/super.h:125 [inline] #0: ffff0000130c0460 (sb_writers#6){.+.+}-{0:0}, at: mnt_want_write+0x3c/0xb0 fs/namespace.c:494 #1: ffff000013ff8288 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: inode_lock include/linux/fs.h:1025 [inline] #1: ffff000013ff8288 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: lookup_open+0x778/0x1644 fs/namei.c:4458 locks held by udevd/5448: 1, on CPU#0: #0: ffff000014e9c350 (&disk->open_mutex){+.+.}-{4:4}, at: bdev_open+0x2b8/0xa70 block/bdev.c:990 locks held by kworker/u8:20/5730: 3, last CPU#0: #0: ffff00000e04c140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x12ec/0x1c00 kernel/workqueue.c:3362 #1: ffff80008eb67c70 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_one_work+0x780/0x1c00 kernel/workqueue.c:3361 #2: ffff000013e77258 (&devlink->lock_key#5){+.+.}-{4:4}, at: devl_trylock+0x18/0x30 net/devlink/core.c:314 locks held by kworker/u8:23/5736: 3, last CPU#0: #0: ffff00000e04c140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x12ec/0x1c00 kernel/workqueue.c:3362 #1: ffff80008f257c70 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_one_work+0x780/0x1c00 kernel/workqueue.c:3361 #2: ffff000012e5b258 (&devlink->lock_key#2){+.+.}-{4:4}, at: devl_trylock+0x18/0x30 net/devlink/core.c:314 locks held by syz-executor/6372: 7, last CPU#0: #0: ffff000019360460 (sb_writers#7){.+.+}-{0:0}, at: percpu_down_read_freezable include/linux/percpu-rwsem.h:83 [inline] #0: ffff000019360460 (sb_writers#7){.+.+}-{0:0}, at: __sb_start_write include/linux/fs/super.h:19 [inline] #0: ffff000019360460 (sb_writers#7){.+.+}-{0:0}, at: sb_start_write include/linux/fs/super.h:125 [inline] #0: ffff000019360460 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2754 [inline] #0: ffff000019360460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x680/0xbac fs/read_write.c:683 #1: ffff000015ac7c80 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1e4/0x460 fs/kernfs/file.c:336 #2: ffff00001765c0f8 (kn->active#34){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:73 [inline] #2: ffff00001765c0f8 (kn->active#34){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22c/0x460 fs/kernfs/file.c:337 #3: ffff8000886b69e0 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xc0/0x3ac drivers/net/netdevsim/bus.c:234 #4: ffff000018571128 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1104 [inline] #4: ffff000018571128 (&dev->mutex){....}-{4:4}, at: __device_driver_lock drivers/base/dd.c:1171 [inline] #4: ffff000018571128 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0x88/0x478 drivers/base/dd.c:1369 #5: ffff000018577258 (&devlink->lock_key#6){+.+.}-{4:4}, at: devl_lock+0x18/0x24 net/devlink/core.c:308 #6: ffff000021835950 (&sb->s_type->i_mutex_key#19/2){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1070 [inline] #6: ffff000021835950 (&sb->s_type->i_mutex_key#19/2){+.+.}-{4:4}, at: __simple_recursive_removal+0x33c/0x440 fs/libfs.c:619 locks held by kworker/u8:2/6384: 2, last CPU#0: #0: ffff00000e04b940 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_one_work+0x12ec/0x1c00 kernel/workqueue.c:3362 #1: ffff80008f497c70 ((gc_work).work){+.+.}-{0:0}, at: process_one_work+0x780/0x1c00 kernel/workqueue.c:3361 locks held by kworker/u8:3/6386: 3, last CPU#0: #0: ffff00000e04c140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: raw_spin_rq_lock_nested kernel/sched/core.c:677 [inline] #0: ffff00000e04c140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: raw_spin_rq_lock kernel/sched/sched.h:1678 [inline] #0: ffff00000e04c140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: rq_lock kernel/sched/sched.h:2016 [inline] #0: ffff00000e04c140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: __schedule+0x2f8/0x34f4 kernel/sched/core.c:7144 #1: ffff00006bf791a0 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x60/0x81c kernel/sched/psi.c:933 #2: ffff00006bf7ad58 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0xb4/0x178 kernel/time/timer.c:1004 =============================================