INFO: task syz-executor.2:10570 blocked for more than 143 seconds. Not tainted 6.6.0-rc5-syzkaller-00234-g8cb1f10d8c4b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:27192 pid:10570 ppid:5070 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x196c/0x4af0 kernel/sched/core.c:6695 schedule+0xc3/0x180 kernel/sched/core.c:6771 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6830 rwsem_down_write_slowpath+0xee6/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:802 [inline] f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2172 [inline] __f2fs_ioctl+0x35a0/0xb9b0 fs/f2fs/file.c:4224 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:857 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:0x7f2e6487cae9 RSP: 002b:00007f2e655c60c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f2e6499c120 RCX: 00007f2e6487cae9 RDX: 0000000000008301 RSI: 000000000000f502 RDI: 0000000000000005 RBP: 00007f2e648c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f2e6499c120 R15: 00007ffc941b5ad8 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] #0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline] #0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613 4 locks held by kworker/u4:2/42: #0: ffff888140065938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888140065938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #1: ffffc90000b2fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc90000b2fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #2: ffff8880678f20e0 (&type->s_umount_key#56){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:607 #3: ffff888022f452a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2132 [inline] #3: ffff888022f452a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x500/0x730 fs/f2fs/segment.c:437 2 locks held by getty/4793: #0: ffff88802ad6a0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2206 5 locks held by syz-executor.2/10566: 2 locks held by syz-executor.2/10570: #0: ffff8880678f2410 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write_file+0x61/0x200 fs/namespace.c:447 #1: ffff8880300eeb70 (&sb->s_type->i_mutex_key#22){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff8880300eeb70 (&sb->s_type->i_mutex_key#22){+.+.}-{3:3}, at: f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2172 [inline] #1: ffff8880300eeb70 (&sb->s_type->i_mutex_key#22){+.+.}-{3:3}, at: __f2fs_ioctl+0x35a0/0xb9b0 fs/f2fs/file.c:4224 2 locks held by syz-executor.3/10827: #0: ffff8880678f20e0 (&type->s_umount_key#56){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff8880678f20e0 (&type->s_umount_key#56){++++}-{3:3}, at: super_lock+0x176/0x390 fs/super.c:117 #1: ffff88801cb107d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801cb107d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2739 2 locks held by syz-executor.3/10896: #0: ffff8880678f20e0 (&type->s_umount_key#56){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff8880678f20e0 (&type->s_umount_key#56){++++}-{3:3}, at: super_lock+0x176/0x390 fs/super.c:117 #1: ffff88801cb107d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801cb107d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2739 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc5-syzkaller-00234-g8cb1f10d8c4b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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+0xfa9/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:304 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 5057 Comm: syz-fuzzer Not tainted 6.6.0-rc5-syzkaller-00234-g8cb1f10d8c4b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0033:0x551933 Code: 38 48 89 6c 24 30 48 8d 6c 24 30 48 83 78 68 00 75 46 48 8b 50 58 48 8b 48 50 4c 8b 48 48 48 39 d1 74 11 76 3f 41 0f b6 04 11 <48> 8b 6c 24 30 48 83 c4 38 c3 48 8d 1d d0 83 55 00 b9 0e 00 00 00 RSP: 002b:000000c000eb6ce8 EFLAGS: 00000216 RAX: 0000000000000041 RBX: 0000000000003cff RCX: 0000000000007431 RDX: 0000000000003fe6 RSI: 0000000000003fe6 RDI: 000000c008322fa0 RBP: 000000c000eb6d18 R08: 0000000000000000 R09: 000000c00c510000 R10: 000000c008320000 R11: 0000000000000020 R12: 0000000000000000 R13: 0000000000000040 R14: 000000c0000061a0 R15: 000000c000b6b000 FS: 000000c000b6b090 GS: 0000000000000000