INFO: task syz-executor.3:9544 blocked for more than 143 seconds. Not tainted 6.2.0-rc7-syzkaller-00199-g420b2d431d18 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:25328 pid:9544 ppid:5099 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5293 [inline] __schedule+0x1409/0x43f0 kernel/sched/core.c:6606 schedule+0xc3/0x190 kernel/sched/core.c:6682 rwsem_down_write_slowpath+0xfcf/0x14a0 kernel/locking/rwsem.c:1190 f2fs_down_write fs/f2fs/f2fs.h:2213 [inline] f2fs_precache_extents+0x247/0x3f0 fs/f2fs/file.c:3229 f2fs_ioc_precache_extents fs/f2fs/file.c:3243 [inline] __f2fs_ioctl+0xdcc/0xb500 fs/f2fs/file.c:4201 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856 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:0x7f27b668c0f9 RSP: 002b:00007f27b743c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f27b67ac050 RCX: 00007f27b668c0f9 RDX: 0000000000000000 RSI: 000000000000f50f RDI: 0000000000000008 RBP: 00007f27b66e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdce53611f R14: 00007f27b743c300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf23910 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xce0 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf24110 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xce0 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8cf23740 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 4 locks held by kworker/u4:4/62: #0: ffff88801750c938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77f/0x1370 #1: ffffc900015a7d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x1370 kernel/workqueue.c:2264 #2: ffff88802eb920e0 (&type->s_umount_key#58){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:415 #3: ffff88802c5992a0 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2213 [inline] #3: ffff88802c5992a0 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4ff/0x6c0 fs/f2fs/segment.c:421 4 locks held by kworker/u4:5/2823: #0: ffff88801750c938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77f/0x1370 #1: ffffc9000a7b7d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x1370 kernel/workqueue.c:2264 #2: ffff88807db6a0e0 (&type->s_umount_key#58){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:415 #3: ffff88802b3052a0 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2213 [inline] #3: ffff88802b3052a0 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4ff/0x6c0 fs/f2fs/segment.c:421 2 locks held by getty/4737: #0: ffff88802818c098 (&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 1 lock held by syz-fuzzer/5643: 1 lock held by syz-executor.1/5102: #0: ffff88807e6ca0e0 (&type->s_umount_key#53){++++}-{3:3}, at: deactivate_super+0xad/0xf0 fs/super.c:362 6 locks held by syz-executor.3/9486: 1 lock held by syz-executor.3/9544: #0: ffff88802d156090 (&fi->i_gc_rwsem[WRITE]){++++}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2213 [inline] #0: ffff88802d156090 (&fi->i_gc_rwsem[WRITE]){++++}-{3:3}, at: f2fs_precache_extents+0x247/0x3f0 fs/f2fs/file.c:3229 6 locks held by syz-executor.5/9643: 1 lock held by syz-executor.5/9649: #0: ffff88802d150730 (&fi->i_gc_rwsem[WRITE]){++++}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2213 [inline] #0: ffff88802d150730 (&fi->i_gc_rwsem[WRITE]){++++}-{3:3}, at: f2fs_precache_extents+0x247/0x3f0 fs/f2fs/file.c:3229 1 lock held by syz-executor.5/10556: 3 locks held by syz-executor.3/10571: 3 locks held by syz-executor.4/10577: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc7-syzkaller-00199-g420b2d431d18 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e5/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1b4/0x3f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xf70/0xfb0 kernel/hung_task.c:377 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: 5050 Comm: syz-fuzzer Not tainted 6.2.0-rc7-syzkaller-00199-g420b2d431d18 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:__switch_to_asm+0x39/0x60 arch/x86/entry/entry_64.S:265 Code: 89 a7 d8 17 00 00 48 8b a6 d8 17 00 00 48 8b 9e a8 05 00 00 65 48 89 1c 25 28 00 00 00 49 c7 c4 10 00 00 00 e8 01 00 00 00 cc 01 00 00 00 cc 48 83 c4 10 49 ff cc 75 eb 0f ae e8 41 5f 41 5e RSP: 0018:ffffc900030ef520 EFLAGS: 00000086 RAX: ffff88807eae3a80 RBX: 626e19f68fac0200 RCX: ffffc90004197903 RDX: 0000000000000000 RSI: ffff88807eae3a80 RDI: ffff88801fd51d40 RBP: ffffc90004197c08 R08: dffffc0000000000 R09: fffffbfff1ca1246 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000010 R13: 1ffff1100fd5c7f5 R14: ffff88801fd52270 R15: ffff88807eae3fa8 FS: 000000c000052090(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe6d65bf5b0 CR3: 0000000028d41000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: