INFO: task kworker/u9:6:1098 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u9:6    state:D stack:23232 pid:1098  tgid:1098  ppid:2      task_flags:0x4208060 flags:0x00080000
Workqueue: writeback wb_workfn (flush-7:0)
Call Trace:
 <TASK>
 __schedule+0x15dd/0x52d0
 schedule+0x164/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x899/0x1040
 down_write+0x1bc/0x200
 f2fs_down_write_trace+0x3e/0x1d0
 f2fs_balance_fs+0x60e/0x840
 f2fs_write_inode+0x3fb/0x5f0
 __writeback_single_inode+0x75a/0x11a0
 writeback_sb_inodes+0x992/0x1a20
 __writeback_inodes_wb+0x111/0x240
 wb_writeback+0x46a/0xb70
 wb_workfn+0xb4c/0xf50
 process_scheduled_works+0xb02/0x1830
 worker_thread+0xa50/0xfc0
 kthread+0x388/0x470
 ret_from_fork+0x51e/0xb90
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Showing all locks held in the system:
1 lock held by ksoftirqd/0/15:
1 lock held by khungtaskd/35:
 #0: ffffffff8e75e3e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
4 locks held by kworker/u9:6/1098:
 #0: ffff8881626e6148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x9ea/0x1830
 #1: ffffc90006a2fc40 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0xa25/0x1830
 #2: ffff888110cc20e0 (&type->s_umount_key#57){++++}-{4:4}, at: super_trylock_shared+0x20/0xf0
 #3: ffff8881017c1518 (&sbi->gc_lock){+.+.}-{4:4}, at: f2fs_down_write_trace+0x3e/0x1d0
1 lock held by dhcpcd/5553:
 #0: ffffffff8fbcccc8 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x404/0x1ad0
2 locks held by getty/5634:
 #0: ffff88810bb7d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000356b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45c/0x13c0
1 lock held by udevd/5814:
5 locks held by syz.0.5/5898:
2 locks held by syz.5.347/8915:
 #0: ffff888110cc20e0 (&type->s_umount_key#57){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff8881023c6820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c0/0xb80
2 locks held by syz.5.347/8916:
 #0: ffff888110cc20e0 (&type->s_umount_key#57){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff8881023c6820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c0/0xb80
2 locks held by syz.9.430/9756:
 #0: ffff888110cc20e0 (&type->s_umount_key#57){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff8881023c6820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c0/0xb80
2 locks held by syz.9.430/9757:
 #0: ffff888110cc20e0 (&type->s_umount_key#57){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff8881023c6820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c0/0xb80
9 locks held by syz-executor/10171:
 #0: ffff888111150420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x227/0xb90
 #1: ffff8881bbf09488 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1de/0x540
 #2: ffff8881043c7788 (kn->active#48){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x231/0x540
 #3: ffffffff8f441528 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd7/0x370
 #4: ffff88811d0c80e8 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xb6/0x860
 #5: ffff88811d0ca250 (&devlink->lock_key#13){+.+.}-{4:4}, at: nsim_drv_remove+0x50/0x170
 #6: ffffffff8fbcccc8 (rtnl_mutex){+.+.}-{4:4}, at: nsim_destroy+0xed/0x680
 #7: ffff8881108ccd40 (&dev_instance_lock_key#24){+.+.}-{4:4}, at: unregister_netdevice_many_notify+0x118e/0x2370
 #8: ffffffff8e764678 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x38d/0x770
3 locks held by syz.6.481/10233:

=============================================

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 35 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 nmi_cpu_backtrace+0x274/0x2d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 sys_info+0x135/0x170
 watchdog+0xfd9/0x1030
 kthread+0x388/0x470
 ret_from_fork+0x51e/0xb90
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 10239 Comm: syz.2.480 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:__lock_acquire+0x6d5/0x2cf0
Code: ba 08 00 00 00 e8 6b 44 00 00 31 ed 85 c0 0f 84 6d 0d 00 00 83 3d ea d9 85 18 00 75 13 48 63 44 24 18 48 0f a3 05 fb 49 82 12 <0f> 83 8a 1e 00 00 49 8b 9e 48 0b 00 00 48 83 7c 24 28 00 75 19 83
RSP: 0018:ffffc9000b85ef78 EFLAGS: 00000047
RAX: 0000000000000007 RBX: 0000000000000000 RCX: ffffffff93c4e988
RDX: 0000000000000008 RSI: ffff88817181c5d8 RDI: ffff88817181ba80
RBP: 0000000000000000 R08: ffffffff81767de5 R09: ffffffff8e75e3e0
R10: ffffc9000b85f258 R11: ffffffff81b0c890 R12: ffffffffffffff05
R13: ffff88817181c5d8 R14: ffff88817181ba80 R15: ffff88817181c5d8
FS:  00007fc0d9db76c0(0000) GS:ffff88818de5f000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc0cfbff000 CR3: 0000000175f58000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 lock_acquire+0xf0/0x2e0
 unwind_next_frame+0xc2/0x23c0
 arch_stack_walk+0x11b/0x150
 stack_trace_save+0xa9/0x100
 save_stack+0x122/0x230
 __reset_page_owner+0x71/0x1f0
 free_unref_folios+0xed5/0x16d0
 folios_put_refs+0x789/0x8d0
 shmem_undo_range+0x52c/0x1660
 shmem_evict_inode+0x289/0xae0
 evict+0x61e/0xb10
 __dentry_kill+0x1a2/0x5e0
 finish_dput+0xc9/0x480
 __fput+0x691/0xa70
 fput_close_sync+0x11f/0x240
 __x64_sys_close+0x7e/0x110
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc0d8f5cfce
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fc0d9db6da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 00007fc0d9db76c0 RCX: 00007fc0d8f5cfce
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006
RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007fc0d9db6ee0 R14: 00007fc0d9db6ea0 R15: 00007fc0cec00000
 </TASK>
