INFO: task syz.7.225:7652 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.7.225       state:D stack:24648 pid:7652  tgid:7650  ppid:7233   task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_timeout+0x9a/0x270
 wait_for_completion+0x2bf/0x5d0
 f2fs_issue_checkpoint+0x376/0x570
 f2fs_do_sync_file+0x869/0x1860
 f2fs_file_write_iter+0x753/0x2410
 vfs_write+0x5c9/0xb30
 __x64_sys_pwrite64+0x193/0x220
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f89b678ebe9
RSP: 002b:00007f89b75f7038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007f89b69c5fa0 RCX: 00007f89b678ebe9
RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000005
RBP: 00007f89b6811e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e7c R11: 0000000000000246 R12: 0000000000000000
R13: 00007f89b69c6038 R14: 00007f89b69c5fa0 R15: 00007ffda6cb2f68
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/34:
 #0: ffffffff8e139f20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
3 locks held by kworker/u9:2/139:
 #0: ffff88801b34f148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000259fbc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8881190e20e0 (&type->s_umount_key#54){++++}-{4:4}, at: super_trylock_shared+0x20/0xf0
2 locks held by getty/5674:
 #0: ffff8880282090a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900029062f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
1 lock held by syz.7.225/7652:
 #0: ffff8881190e2428 (sb_writers#18){++++}-{0:0}, at: vfs_write+0x211/0xb30
3 locks held by f2fs_ckpt-7:7/7662:
3 locks held by syz-executor/9797:
 #0: ffff88803a3560e0 (&type->s_umount_key#65){+.+.}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffff888128f00278 (&c->state_lock){++++}-{4:4}, at: __bch2_fs_stop+0xf8/0x900
 #2: ffffffff8e13f9b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730
2 locks held by syz.9.611/10398:
 #0: ffff8881190e20e0 (&type->s_umount_key#54){++++}-{4:4}, at: super_lock+0x2a9/0x3b0
 #1: ffff8880217f47d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x19f/0xa10
1 lock held by syz-executor/10624:
 #0: ffffffff8e13f9b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730
1 lock held by syz.6.686/10807:
3 locks held by syz.6.686/10815:
1 lock held by syz.6.686/10816:

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

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+0x189/0x250
 nmi_cpu_backtrace+0x39e/0x3d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 watchdog+0xf93/0xfe0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 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: 7662 Comm: f2fs_ckpt-7:7 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:match_held_lock+0x76/0xc0
Code: ff 1f 00 00 48 c7 c2 10 43 49 93 48 29 d0 48 c1 f8 03 48 ba 29 5c 8f c2 f5 28 5c 8f 48 0f af d0 bb 01 00 00 00 48 39 ca 74 02 <31> db 89 d8 5b 41 5e e9 8e dc 02 00 cc 90 e8 b7 e2 4a f9 85 c0 74
RSP: 0018:ffffc900042ff680 EFLAGS: 00000083
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 75da7a60d7b3e500
RDX: 0000000000000000 RSI: ffffffff8e139fe0 RDI: ffff888108474470
RBP: 00000000ffffffff R08: ffff888112f549c3 R09: 1ffff110225ea938
R10: dffffc0000000000 R11: ffffed10225ea939 R12: 0000000000000246
R13: ffff888108473980 R14: ffffffff8e139fe0 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8618000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff23b71f28 CR3: 0000000125a8c000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 lock_is_held_type+0xa8/0x190
 __might_resched+0xf5/0x610
 down_write+0x76/0x1f0
 f2fs_write_checkpoint+0x51c/0x1df0
 __checkpoint_and_complete_reqs+0xd9/0x3b0
 issue_checkpoint_thread+0xd9/0x260
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
