INFO: task syz-executor.4:21301 blocked for more than 143 seconds. Not tainted 6.7.0-rc1-syzkaller-00019-gc42d9eeef8e5 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:29168 pid:21301 tgid:21236 ppid:5111 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835 rwsem_down_write_slowpath+0xeea/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:802 [inline] f2fs_fallocate+0x340/0x6b0 fs/f2fs/file.c:1821 vfs_fallocate+0x551/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:51 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f099dc7cae9 RSP: 002b:00007f099e9a70c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f099dd9c120 RCX: 00007f099dc7cae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f099dcc847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f099dd9c120 R15: 00007ffd02513f48 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613 4 locks held by kworker/u4:8/2822: #0: ffff888014eadd38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888014eadd38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703 #1: ffffc9000b257d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc9000b257d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703 #2: ffff88807cd400e0 (&type->s_umount_key#62){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:610 #3: ffff88801ed252a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2133 [inline] #3: ffff88801ed252a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x500/0x730 fs/f2fs/segment.c:437 2 locks held by getty/4817: #0: ffff88802a7520a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 4 locks held by syz-executor.4/21237: 2 locks held by syz-executor.4/21301: #0: ffff88807cd40418 (sb_writers#16){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2713 [inline] #0: ffff88807cd40418 (sb_writers#16){.+.+}-{0:0}, at: vfs_fallocate+0x4c4/0x6b0 fs/open.c:323 #1: ffff88803e771bd8 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff88803e771bd8 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: f2fs_fallocate+0x340/0x6b0 fs/f2fs/file.c:1821 2 locks held by syz-executor.2/22522: #0: ffff88807cd400e0 (&type->s_umount_key#62){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88807cd400e0 (&type->s_umount_key#62){++++}-{3:3}, at: super_lock+0x176/0x3a0 fs/super.c:117 #1: ffff8881417f87d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff8881417f87d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2756 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc1-syzkaller-00019-gc42d9eeef8e5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/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+0x198/0x310 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xfaf/0xff0 kernel/hung_task.c:379 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 21237 Comm: syz-executor.4 Not tainted 6.7.0-rc1-syzkaller-00019-gc42d9eeef8e5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:lock_acquire+0xc/0x530 kernel/locking/lockdep.c:5721 Code: 1e fa 65 8b 05 dd 92 96 7e a9 00 ff ff 00 0f 95 c0 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 55 48 89 e5 41 57 41 56 <41> 55 41 54 53 48 83 e4 e0 48 81 ec 20 01 00 00 4c 89 4c 24 28 4c RSP: 0018:ffffc90016126c18 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88801e1bb8c0 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801e1bb930 RBP: ffffc90016126c28 R08: 0000000000000001 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed1003da4818 R12: 1ffff92002c24d94 R13: dffffc0000000000 R14: ffff88801e1bb800 R15: 000000000000000f FS: 00007f099e9e96c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c000c0f3e8 CR3: 000000002a1ff000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: down_read+0xb1/0xa40 kernel/locking/rwsem.c:1526 f2fs_down_read fs/f2fs/f2fs.h:2117 [inline] f2fs_get_node_info+0xf8/0x12c0 fs/f2fs/node.c:564 is_alive fs/f2fs/gc.c:1119 [inline] gc_data_segment fs/f2fs/gc.c:1552 [inline] do_garbage_collect+0x2495/0x81e0 fs/f2fs/gc.c:1766 f2fs_gc+0xeff/0x3170 fs/f2fs/gc.c:1869 f2fs_balance_fs+0x549/0x730 fs/f2fs/segment.c:439 f2fs_map_blocks+0x3cee/0x4710 fs/f2fs/data.c:1836 f2fs_expand_inode_data+0x5d0/0xb60 fs/f2fs/file.c:1744 f2fs_fallocate+0x403/0x6b0 fs/f2fs/file.c:1839 vfs_fallocate+0x551/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:51 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f099dc7cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f099e9e90c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f099dd9bf80 RCX: 00007f099dc7cae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 00007f099dcc847a R08: 0000000000000000 R09: 0000000000000000 R10: 00000000001000f8 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f099dd9bf80 R15: 00007ffd02513f48