INFO: task kworker/u10:5:141 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u10:5   state:D stack:21888 pid:141   tgid:141   ppid:2      task_flags:0x4208160 flags:0x00080000
Workqueue: writeback wb_workfn (flush-7:4)
Call Trace:
 <TASK>
 __schedule+0x17d9/0x56c0
 schedule+0x164/0x2b0
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x87d/0x1080
 down_write+0x1bc/0x200
 f2fs_down_write_trace+0x34/0x1f0
 f2fs_issue_checkpoint+0x414/0x6f0
 f2fs_balance_fs_bg+0x573/0x990
 f2fs_write_node_pages+0x158/0x700
 do_writepages+0x338/0x560
 __writeback_single_inode+0x12e/0xf90
 writeback_sb_inodes+0x9de/0x1b00
 __writeback_inodes_wb+0x114/0x240
 wb_writeback+0x42f/0xad0
 wb_workfn+0xc92/0x10f0
 process_scheduled_works+0xa8e/0x14e0
 worker_thread+0xa47/0xfb0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz.6.1617:21177 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.1617      state:D stack:28808 pid:21177 tgid:21176 ppid:19663  task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x17d9/0x56c0
 schedule+0x164/0x2b0
 wb_wait_for_completion+0x3b2/0x700
 sync_inodes_sb+0x224/0xbf0
 __iterate_supers+0x137/0x240
 __ia32_sys_sync+0xa0/0x120
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f365179e0d9
RSP: 002b:00007f36526f8028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007f3651a25fa0 RCX: 00007f365179e0d9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f3651a25fa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3651a26038 R14: 00007f3651a25fa0 R15: 00007ffd23d573d8
 </TASK>

Showing all locks held in the system:
1 lock held by ksoftirqd/1/23:
1 lock held by khungtaskd/34:
 #0: ffffffff8eb59ca0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
4 locks held by kworker/u10:5/141:
 #0: ffff8881622f1140 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0
 #1: ffffc9000321fc40 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0xa20/0x14e0
 #2: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_trylock_shared+0x20/0xf0
 #3: ffff8881793594b8 (&sbi->gc_lock){+.+.}-{4:4}, at: f2fs_down_write_trace+0x34/0x1f0
2 locks held by getty/5425:
 #0: ffff88817809d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900034762e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360
1 lock held by syz-executor/5525:
 #0: ffff88812103b160 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2d/0x160
3 locks held by syz.4.1382/18699:
2 locks held by syz.6.1617/21177:
 #0: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88816d8ba870 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x208/0xbf0
1 lock held by syz.4.1727/22201:
 #0: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_lock+0x289/0x3d0
1 lock held by syz.3.1764/22583:
 #0: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
1 lock held by syz.3.1764/22585:
 #0: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
1 lock held by syz.3.1764/22587:
 #0: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
1 lock held by syz.3.1764/22589:
 #0: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
1 lock held by syz.3.1764/22591:
 #0: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
1 lock held by syz.3.1764/22593:
 #0: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
1 lock held by syz.3.1764/22595:
 #0: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
1 lock held by syz.3.1764/22598:
 #0: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
1 lock held by syz.2.1842/23460:
 #0: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
1 lock held by syz.2.1842/23461:
 #0: ffff88810e5a40d8 (&type->s_umount_key#64){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
1 lock held by syz-executor/24358:
 #0: ffffffff8eb5ffa8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x38d/0x770

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 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/0x380
 sys_info+0x135/0x170
 watchdog+0xfd7/0x1030
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 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: 24358 Comm: syz-executor 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+0xe7/0x350
Code: 9c 41 5f fa 48 c7 c7 8a 20 25 8e e8 73 fc 2e 0a 65 ff 05 bc 0d cb 11 45 31 c9 4c 89 7c 24 08 41 f7 c7 00 02 00 00 41 0f 94 c1 <4c> 89 ef 89 de 8b 54 24 04 44 89 e1 45 89 f0 6a 00 6a 00 6a 00 55
RSP: 0018:ffffc90004d2f0c0 EFLAGS: 00000006
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000046
RDX: 0000000000000000 RSI: ffffffff8e25208a RDI: ffffffff8c4c8480
RBP: ffffffff8177927f R08: 0000000000000000 R09: 0000000000000000
R10: ffffc90004d2f258 R11: ffffffff81b20cd0 R12: 0000000000000002
R13: ffffffff8eb59ca0 R14: 0000000000000000 R15: 0000000000000246
FS:  00005555685d5500(0000) GS:ffff88818d947000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f643f5ef2f8 CR3: 00000001722a6000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 unwind_next_frame+0xac/0x2550
 arch_stack_walk+0x11b/0x150
 stack_trace_save+0xa9/0x100
 save_stack+0x122/0x230
 __reset_page_owner+0x71/0x1f0
 free_unref_folios+0xd84/0x14a0
 folios_put_refs+0x9e9/0xb30
 shmem_undo_range+0x4e6/0x15d0
 shmem_evict_inode+0x280/0xa80
 evict+0x624/0xb50
 dentry_kill+0x1b9/0x880
 finish_dput+0x1a/0x260
 __fput+0x675/0xa50
 task_work_run+0x1d9/0x270
 exit_to_user_mode_loop+0x1fa/0x750
 do_syscall_64+0x353/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f986f15e90e
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:00007ffed9292528 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00005555685d5500 RCX: 00007f986f15e90e
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007ffed92925cc R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000003d
R13: 00000000000927c0 R14: 00000000000a24ac R15: 00007ffed9292620
 </TASK>
