INFO: task syz.4.394:9205 blocked for more than 143 seconds. Not tainted 6.12.0-syzkaller-00971-g158f238aa69d #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.394 state:D stack:23520 pid:9205 tgid:9201 ppid:5841 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5328 [inline] __schedule+0x17fa/0x4bd0 kernel/sched/core.c:6693 __schedule_loop kernel/sched/core.c:6770 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6785 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6842 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1d7/0x220 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:818 [inline] finish_preallocate_blocks fs/f2fs/file.c:559 [inline] f2fs_file_open+0x11b/0x3a0 fs/f2fs/file.c:612 do_dentry_open+0x978/0x1460 fs/open.c:941 vfs_open+0x3e/0x330 fs/open.c:1071 do_open fs/namei.c:3828 [inline] path_openat+0x2c84/0x3590 fs/namei.c:3987 do_filp_open+0x27f/0x4e0 fs/namei.c:4014 do_sys_openat2+0x13e/0x1d0 fs/open.c:1398 do_sys_open fs/open.c:1413 [inline] __do_sys_openat fs/open.c:1429 [inline] __se_sys_openat fs/open.c:1424 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1424 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe69eb7e759 RSP: 002b:00007fe69f8ea038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fe69ed36130 RCX: 00007fe69eb7e759 RDX: 0000000000020242 RSI: 0000000020000380 RDI: ffffffffffffff9c RBP: 00007fe69ebf175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe69ed36130 R15: 00007ffd1a82bce8 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e939f60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e939f60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e939f60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6720 2 locks held by getty/5589: #0: ffff88814d93e0a0 (&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+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 1 lock held by syz-executor/6094: #0: ffff88807b0720e0 (&type->s_umount_key#31){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff88807b0720e0 (&type->s_umount_key#31){++++}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88807b0720e0 (&type->s_umount_key#31){++++}-{3:3}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 4 locks held by kworker/u8:8/6131: #0: ffff8880202b9148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff8880202b9148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc9000c3cfd00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc9000c3cfd00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffff8880635fc0e0 (&type->s_umount_key#64){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:562 #3: ffff888033a71350 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2199 [inline] #3: ffff888033a71350 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x5b0/0x7a0 fs/f2fs/segment.c:448 7 locks held by syz.4.394/9203: 2 locks held by syz.4.394/9205: #0: ffff8880635fc420 (sb_writers#18){++++}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515 #1: ffff88805ac7ad30 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:818 [inline] #1: ffff88805ac7ad30 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: finish_preallocate_blocks fs/f2fs/file.c:559 [inline] #1: ffff88805ac7ad30 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: f2fs_file_open+0x11b/0x3a0 fs/f2fs/file.c:612 1 lock held by syz-executor/9358: #0: ffffffff8e93f4f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #0: ffffffff8e93f4f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976 3 locks held by syz-executor/9606: 1 lock held by syz.3.592/10725: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-syzkaller-00971-g158f238aa69d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xff4/0x1040 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 9203 Comm: syz.4.394 Not tainted 6.12.0-syzkaller-00971-g158f238aa69d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:26 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:87 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:123 [inline] RIP: 0010:kasan_quarantine_put+0x27/0x230 mm/kasan/quarantine.c:207 Code: 90 90 90 66 0f 1f 00 41 57 41 56 41 55 41 54 53 50 49 89 fe e8 da e9 ff ff 48 85 c0 74 6b 48 89 c3 48 c7 04 24 00 00 00 00 9c <8f> 04 24 4c 8b 3c 24 fa 41 f7 c7 00 02 00 00 74 05 e8 b3 f7 a0 ff RSP: 0018:ffffc90000a18b80 EFLAGS: 00000286 RAX: ffff88804f1089a0 RBX: ffff88804f1089a0 RCX: 00000000000000e0 RDX: ffff88804f1089a0 RSI: ffff88804f1088c0 RDI: ffff888142aaf000 RBP: 0000000000000000 R08: ffffc90000a18960 R09: 000000000000000a R10: dffffc0000000000 R11: fffffbfff285512e R12: ffff88804f1088c0 R13: ffff8880543e1788 R14: ffff888142aaf000 R15: ffff888142aaf000 FS: 00007fe69f92c6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f66ec33a19c CR3: 000000005ee06000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:2342 [inline] slab_free_after_rcu_debug+0x11c/0x290 mm/slub.c:4629 rcu_do_batch kernel/rcu/tree.c:2567 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2823 handle_softirqs+0x2c5/0x980 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 irq_exit_rcu+0x9/0x30 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2042 [inline] RIP: 0010:vprintk_emit+0x700/0xa10 kernel/printk/printk.c:2406 Code: 00 e8 94 c8 20 00 4c 8d bc 24 a0 00 00 00 4d 85 e4 75 07 e8 82 c8 20 00 eb 06 e8 7b c8 20 00 fb 49 bc 00 00 00 00 00 fc ff df <48> c7 c7 60 55 81 8e 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 RSP: 0018:ffffc90012ce6420 EFLAGS: 00000293 RAX: ffffffff81742905 RBX: 0000000000000000 RCX: ffff88802e220000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90012ce6530 R08: ffffffff817428de R09: 1ffffffff285512d R10: dffffc0000000000 R11: fffffbfff285512e R12: dffffc0000000000 R13: 1ffff9200259cc88 R14: ffffffff81742740 R15: ffffc90012ce64c0 _printk+0xd5/0x120 kernel/printk/printk.c:2432 bio_check_eod block/blk-core.c:557 [inline] submit_bio_noacct+0xfcd/0x1910 block/blk-core.c:784 f2fs_submit_page_read+0x121/0x190 fs/f2fs/data.c:1116 f2fs_get_read_data_page+0x51c/0x8f0 fs/f2fs/data.c:1275 f2fs_get_lock_data_page+0x54/0x350 fs/f2fs/data.c:1323 move_data_page fs/f2fs/gc.c:1461 [inline] gc_data_segment fs/f2fs/gc.c:1685 [inline] do_garbage_collect+0x3c24/0x8200 fs/f2fs/gc.c:1829 f2fs_gc+0xf90/0x2ff0 fs/f2fs/gc.c:1933 f2fs_balance_fs+0x5f8/0x7a0 fs/f2fs/segment.c:450 f2fs_map_blocks+0x44ec/0x4f10 fs/f2fs/data.c:1791 f2fs_expand_inode_data+0x622/0xbb0 fs/f2fs/file.c:1811 f2fs_fallocate+0x448/0x960 fs/f2fs/file.c:1914 vfs_fallocate+0x569/0x6e0 fs/open.c:327 do_vfs_ioctl+0x258c/0x2e40 fs/ioctl.c:885 __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl+0x80/0x170 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe69eb7e759 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe69f92c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe69ed35f80 RCX: 00007fe69eb7e759 RDX: 00000000200003c0 RSI: 0000000040305828 RDI: 0000000000000004 RBP: 00007fe69ebf175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe69ed35f80 R15: 00007ffd1a82bce8