INFO: task syz-executor.4:12566 blocked for more than 143 seconds. Not tainted 6.3.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:25880 pid:12566 ppid:5097 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:758 [inline] f2fs_file_write_iter+0x29b/0x2380 fs/f2fs/file.c:4681 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7b2/0xbb0 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f49a5c8c169 RSP: 002b:00007f49a6926168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f49a5dac120 RCX: 00007f49a5c8c169 RDX: 000000000000010b RSI: 00000000200004c0 RDI: 0000000000000006 RBP: 00007f49a5ce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc062fdf9f R14: 00007f49a6926300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf25570 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf25d70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8cf253a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 4 locks held by kworker/u4:4/56: #0: ffff8880177c9938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc90001577d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 #2: ffff8880282f60e0 (&type->s_umount_key#56){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:414 #3: ffff8880775a52a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2207 [inline] #3: ffff8880775a52a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x51a/0x6f0 fs/f2fs/segment.c:427 2 locks held by getty/4746: #0: ffff88802c5f0098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 7 locks held by syz-executor.4/12507: 3 locks held by syz-executor.4/12566: #0: ffff888077420fe8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x254/0x2f0 fs/file.c:1047 #1: ffff8880282f6460 (sb_writers#22){.+.+}-{0:0}, at: vfs_write+0x26d/0xbb0 fs/read_write.c:580 #2: ffff88803a2df518 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #2: ffff88803a2df518 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: f2fs_file_write_iter+0x29b/0x2380 fs/f2fs/file.c:4681 2 locks held by syz-executor.0/14738: #0: ffff8880282f60e0 (&type->s_umount_key#56){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743 #1: ffff88801eada7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801eada7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x278/0xab0 fs/fs-writeback.c:2728 2 locks held by syz-executor.0/14762: #0: ffff8880282f60e0 (&type->s_umount_key#56){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743 #1: ffff88801eada7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801eada7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x278/0xab0 fs/fs-writeback.c:2728 2 locks held by syz-executor.0/14763: #0: ffff8880282f60e0 (&type->s_umount_key#56){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743 #1: ffff88801eada7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801eada7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x278/0xab0 fs/fs-writeback.c:2728 2 locks held by syz-executor.0/14764: #0: ffff8880282f60e0 (&type->s_umount_key#56){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743 #1: ffff88801eada7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801eada7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x278/0xab0 fs/fs-writeback.c:2728 2 locks held by syz-executor.0/14765: #0: ffff8880282f60e0 (&type->s_umount_key#56){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743 #1: ffff88801eada7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801eada7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x278/0xab0 fs/fs-writeback.c:2728 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x187/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xec2/0xf00 kernel/hung_task.c:379 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 12507 Comm: syz-executor.4 Not tainted 6.3.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:arch_atomic_fetch_add_unless include/linux/atomic/atomic-arch-fallback.h:1245 [inline] RIP: 0010:arch_atomic_add_unless include/linux/atomic/atomic-arch-fallback.h:1267 [inline] RIP: 0010:atomic_add_unless include/linux/atomic/atomic-instrumented.h:608 [inline] RIP: 0010:page_ref_add_unless include/linux/page_ref.h:238 [inline] RIP: 0010:folio_ref_add_unless include/linux/page_ref.h:247 [inline] RIP: 0010:folio_ref_try_add_rcu include/linux/page_ref.h:280 [inline] RIP: 0010:folio_try_get_rcu include/linux/page_ref.h:313 [inline] RIP: 0010:mapping_get_entry mm/filemap.c:1868 [inline] RIP: 0010:__filemap_get_folio+0x28c/0xe50 mm/filemap.c:1920 Code: 04 00 00 00 e8 45 da 26 00 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 84 c0 0f 85 d0 00 00 00 45 8b 7d 00 <31> ff 44 89 fe e8 4a 15 d1 ff 45 85 ff 0f 84 a0 00 00 00 41 8d 4f RSP: 0018:ffffc9000a92ec60 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 1ffff92001525d9b RCX: dffffc0000000000 RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea00021462f4 RBP: ffffc9000a92ed80 R08: dffffc0000000000 R09: fffff94000428c5f R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000f28 R13: ffffea00021462f4 R14: ffffea00021462c0 R15: 0000000000000001 FS: 00007f49a6968700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055be084ae1b0 CR3: 000000001c841000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pagecache_get_page+0x2c/0x240 mm/folio-compat.c:99 f2fs_grab_cache_page+0x2f/0x500 f2fs_get_read_data_page+0xe0/0x850 fs/f2fs/data.c:1224 f2fs_get_lock_data_page+0x56/0x120 fs/f2fs/data.c:1333 move_data_page fs/f2fs/gc.c:1405 [inline] gc_data_segment fs/f2fs/gc.c:1614 [inline] do_garbage_collect+0x31a0/0x7440 fs/f2fs/gc.c:1739 f2fs_gc+0xc50/0x2200 fs/f2fs/gc.c:1837 f2fs_balance_fs+0x525/0x6f0 fs/f2fs/segment.c:428 f2fs_map_blocks+0x3ced/0x4710 fs/f2fs/data.c:1779 f2fs_expand_inode_data+0x567/0xaf0 fs/f2fs/file.c:1745 f2fs_fallocate+0x400/0x6d0 fs/f2fs/file.c:1840 vfs_fallocate+0x54b/0x6b0 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xbd/0x100 fs/open.c:353 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f49a5c8c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f49a6968168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f49a5dabf80 RCX: 00007f49a5c8c169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f49a5ce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc062fdf9f R14: 00007f49a6968300 R15: 0000000000022000