INFO: task kworker/u10:1:37 blocked for more than 143 seconds.
      Tainted: G             L      syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u10:1   state:D stack:20832 pid:37    tgid:37    ppid:2      task_flags:0x4208060 flags:0x00080000
Workqueue: writeback wb_workfn (flush-7:9)
Call Trace:
 <TASK>
 __schedule+0x15dd/0x52d0
 schedule+0x164/0x360
 io_schedule+0x7f/0xd0
 folio_wait_bit_common+0x6d8/0xbc0
 f2fs_sync_node_pages+0x65d/0x1680
 f2fs_write_node_pages+0x312/0x700
 do_writepages+0x32e/0x550
 __writeback_single_inode+0x133/0x11a0
 writeback_sb_inodes+0x992/0x1a20
 wb_writeback+0x456/0xb70
 wb_workfn+0x414/0xf50
 process_scheduled_works+0xb6e/0x18c0
 worker_thread+0xa53/0xfc0
 kthread+0x388/0x470
 ret_from_fork+0x51e/0xb90
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz.9.4107:21864 blocked for more than 143 seconds.
      Tainted: G             L      syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.9.4107      state:D stack:24736 pid:21864 tgid:21863 ppid:20957  task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x15dd/0x52d0
 schedule+0x164/0x360
 io_schedule+0x7f/0xd0
 folio_wait_bit_common+0x6d8/0xbc0
 __filemap_get_folio_mpol+0x13e/0xb00
 __get_node_folio+0x20f/0xe90
 read_xattr_block+0xfd/0x1d0
 f2fs_getxattr+0x751/0xd40
 __f2fs_get_acl+0x52/0xbe0
 f2fs_init_acl+0xf8/0x920
 f2fs_init_inode_metadata+0x9af/0x1190
 f2fs_add_regular_entry+0x97f/0x1040
 f2fs_add_dentry+0xda/0x1d0
 f2fs_do_add_link+0x26f/0x410
 f2fs_create+0x3b2/0x6a0
 path_openat+0x1395/0x3860
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x113/0x200
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f016a79c799
RSP: 002b:00007f016b581028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f016aa15fa0 RCX: 00007f016a79c799
RDX: 00000000001a37c1 RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007f016a832c99 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000042 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f016aa16038 R14: 00007f016aa15fa0 R15: 00007fff392e3218
 </TASK>
INFO: task syz.9.4107:21865 blocked for more than 143 seconds.
      Tainted: G             L      syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.9.4107      state:D stack:25744 pid:21865 tgid:21863 ppid:20957  task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x15dd/0x52d0
 schedule+0x164/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x899/0x1040
 down_write+0x1bc/0x200
 path_openat+0xb4c/0x3860
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x113/0x200
 __x64_sys_open+0x11e/0x150
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f016a79c799
RSP: 002b:00007f01689f6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f016aa16090 RCX: 00007f016a79c799
RDX: 389b0d52417bb212 RSI: 0000000000064842 RDI: 00002000000005c0
RBP: 00007f016a832c99 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f016aa16128 R14: 00007f016aa16090 R15: 00007fff392e3218
 </TASK>
INFO: task syz.3.4124:21927 blocked for more than 144 seconds.
      Tainted: G             L      syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.4124      state:D stack:28800 pid:21927 tgid:21926 ppid:19661  task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x15dd/0x52d0
 schedule+0x164/0x360
 wb_wait_for_completion+0x3e8/0x790
 sync_inodes_sb+0x1de/0xbd0
 __iterate_supers+0x13d/0x290
 __ia32_sys_sync+0xa0/0x120
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7d66d9c799
RSP: 002b:00007f7d67c16028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007f7d67015fa0 RCX: 00007f7d66d9c799
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f7d67015fa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7d67016038 R14: 00007f7d67015fa0 R15: 00007ffc6a480298
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/35:
 #0: ffffffff8e75e5a0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by kworker/u10:1/37:
 #0: ffff888162681148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0xa52/0x18c0
 #1: ffffc90000ad7c40 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0xa8d/0x18c0
2 locks held by getty/5637:
 #0: ffff88810ba910a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000356e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45c/0x13c0
5 locks held by syz.9.4107/21864:
 #0: ffff88801baa2420 (sb_writers#14){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff88812022af60 (&type->i_mutex_dir_key#9){++++}-{4:4}, at: path_openat+0xb4c/0x3860
 #2: ffff888114b883f0 (&sbi->cp_rwsem){++++}-{4:4}, at: f2fs_lock_op+0x42/0x1d0
 #3: ffff88812022ea88 (&fi->i_sem){++++}-{4:4}, at: f2fs_add_regular_entry+0x96b/0x1040
 #4: ffff88812022b630 (&fi->i_xattr_sem){++++}-{4:4}, at: f2fs_getxattr+0xbd/0xd40
2 locks held by syz.9.4107/21865:
 #0: ffff88801baa2420 (sb_writers#14){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff88812022af60 (&type->i_mutex_dir_key#9){++++}-{4:4}, at: path_openat+0xb4c/0x3860
2 locks held by syz.3.4124/21927:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.2.4174/22318:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.2.4174/22319:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.2.4174/22324:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.2.4174/22328:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.2.4174/22329:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.2.4174/22332:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.2.4174/22333:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.4.4277/22807:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.4.4277/22808:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.4.4277/22809:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.4.4277/22810:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.4.4277/22811:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.4.4277/22812:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.5.4290/22875:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.5.4290/22876:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.5.4290/22877:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.5.4290/22878:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.5.4290/22879:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.7.4381/23564:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.7.4381/23567:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.7.4381/23568:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.7.4381/23569:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.7.4381/23571:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0
2 locks held by syz.7.4381/23573:
 #0: ffff88801baa20e0 (&type->s_umount_key#56){++++}-{4:4}, at: super_lock+0x2d6/0x3d0
 #1: ffff88810a668820 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x1c2/0xbd0

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 35 Comm: khungtaskd Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
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: 346 Comm: kworker/u9:5 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: events_unbound nsim_dev_trap_report_work
RIP: 0010:mark_lock+0x3/0x190
Code: 3a 90 41 89 e9 48 89 df 48 8b 2c 24 e9 b6 fd ff ff 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57 <41> 56 41 55 41 54 53 8b 46 20 89 c1 81 e1 00 00 03 00 83 f9 01 bb
RSP: 0018:ffffc90003f772e0 EFLAGS: 00000046
RAX: 0000000000000003 RBX: ffff888106b42958 RCX: 0000000000000004
RDX: 0000000000000008 RSI: ffff888106b42938 RDI: ffff888106b41d40
RBP: ffff888106b42938 R08: ffffffff81767f05 R09: ffffffff8e75e5a0
R10: ffffc90003f775d8 R11: ffffffff81b0b630 R12: 0000000000000003
R13: ffff888106b42938 R14: ffff888106b41d40 R15: 0000000000000004
FS:  0000000000000000(0000) GS:ffff88818de65000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005645ca1ff600 CR3: 0000000107778000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 __lock_acquire+0x6b5/0x2cf0
 lock_acquire+0xf0/0x2e0
 unwind_next_frame+0xc2/0x23c0
 arch_stack_walk+0x11b/0x150
 stack_trace_save+0xa9/0x100
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_node_track_caller_noprof+0x4db/0x7b0
 __alloc_skb+0x2c1/0x7d0
 nsim_dev_trap_report_work+0x29a/0xb80
 process_scheduled_works+0xb6e/0x18c0
 worker_thread+0xa53/0xfc0
 kthread+0x388/0x470
 ret_from_fork+0x51e/0xb90
 ret_from_fork_asm+0x1a/0x30
 </TASK>
