INFO: task syz.6.107:7189 blocked for more than 143 seconds. Not tainted 6.16.0-rc4-syzkaller-00013-g66701750d556 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.6.107 state:D stack:26856 pid:7189 tgid:7120 ppid:6176 task_flags:0x400140 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5396 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6785 __schedule_loop kernel/sched/core.c:6863 [inline] schedule+0x165/0x360 kernel/sched/core.c:6878 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6935 rwsem_down_write_slowpath+0xbec/0x1030 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1ab/0x1f0 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:869 [inline] process_measurement+0x3d8/0x1a40 security/integrity/ima/ima_main.c:260 ima_file_check+0xd7/0x120 security/integrity/ima/ima_main.c:613 security_file_post_open+0xbb/0x290 security/security.c:3130 do_open fs/namei.c:3898 [inline] path_openat+0x2f26/0x3830 fs/namei.c:4055 do_filp_open+0x1fa/0x410 fs/namei.c:4082 do_sys_openat2+0x121/0x1c0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_creat fs/open.c:1530 [inline] __se_sys_creat fs/open.c:1524 [inline] __x64_sys_creat+0x8f/0xc0 fs/open.c:1524 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f739bb8e929 RSP: 002b:00007f739ca8e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f739bdb6160 RCX: 00007f739bb8e929 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000001c0 RBP: 00007f739bc10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f739bdb6160 R15: 00007ffe9a836028 Showing all locks held in the system: 4 locks held by kworker/u8:1/13: #0: ffff888140a92148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff888140a92148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3321 #1: ffffc90000127bc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90000127bc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3321 #2: ffff8880747040e0 (&type->s_umount_key#58){++++}-{4:4}, at: super_trylock_shared+0x20/0xf0 fs/super.c:563 #3: ffff8880217d9410 (&sbi->gc_lock){+.+.}-{4:4}, at: f2fs_down_write fs/f2fs/f2fs.h:2229 [inline] #3: ffff8880217d9410 (&sbi->gc_lock){+.+.}-{4:4}, at: f2fs_balance_fs+0x558/0x750 fs/f2fs/segment.c:463 1 lock held by khungtaskd/31: #0: ffffffff8e13ee20 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8e13ee20 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8e13ee20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6770 2 locks held by getty/5581: #0: ffff888030f360a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000332b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222 5 locks held by syz.6.107/7122: 2 locks held by syz.6.107/7189: #0: ffff888074704428 (sb_writers#22){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:557 #1: ffff888057adb6e8 (&sb->s_type->i_mutex_key#28){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff888057adb6e8 (&sb->s_type->i_mutex_key#28){+.+.}-{4:4}, at: process_measurement+0x3d8/0x1a40 security/integrity/ima/ima_main.c:260 2 locks held by syz.5.178/7925: #0: ffff8880747040e0 (&type->s_umount_key#58){++++}-{4:4}, at: __super_lock fs/super.c:59 [inline] #0: ffff8880747040e0 (&type->s_umount_key#58){++++}-{4:4}, at: super_lock+0x2a9/0x3b0 fs/super.c:121 #1: ffff888024f647d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:387 [inline] #1: ffff888024f647d0 (&bdi->wb_switch_rwsem){+.+.}-{4:4}, at: sync_inodes_sb+0x19f/0xa10 fs/fs-writeback.c:2831 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.16.0-rc4-syzkaller-00013-g66701750d556 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 nmi_cpu_backtrace+0x39e/0x3d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:307 [inline] watchdog+0xfee/0x1030 kernel/hung_task.c:470 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 7122 Comm: syz.6.107 Not tainted 6.16.0-rc4-syzkaller-00013-g66701750d556 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:37 [inline] RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:114 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:128 [inline] RIP: 0010:lock_release+0xaf/0x3e0 kernel/locking/lockdep.c:5888 Code: 0a 00 00 00 0f 85 1e 02 00 00 49 81 3e 40 73 5d 93 0f 84 11 02 00 00 48 c7 44 24 20 00 00 00 00 9c 8f 44 24 20 48 8b 5c 24 20 48 c7 c7 20 1e 98 8d e8 94 d0 c1 09 65 ff 05 ad cd fb 10 c7 44 RSP: 0018:ffffc900034c6558 EFLAGS: 00000287 RAX: 0000000000000000 RBX: 0000000000000287 RCX: 54b2858accc1cc00 RDX: 0000000000000000 RSI: ffffffff8be1b920 RDI: ffffffff8be1b8e0 RBP: ffffc900034c6718 R08: 0000000000000000 R09: ffffffff82145b1d R10: dffffc0000000000 R11: fffff9400027eef1 R12: 1ffff92000698cc8 R13: ffffffff82145b1d R14: ffffffff8e257be0 R15: ffff88802cc6da00 FS: 00007f739caaf6c0(0000) GS:ffff888125c84000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055fd9df00168 CR3: 0000000032e7c000 CR4: 00000000003526f0 Call Trace: might_alloc include/linux/sched/mm.h:318 [inline] mempool_alloc_noprof+0xc3/0x510 mm/mempool.c:392 bio_alloc_bioset+0x241/0x1110 block/bio.c:555 f2fs_grab_read_bio+0x246/0x640 fs/f2fs/data.c:1053 f2fs_submit_page_read+0xad/0x190 fs/f2fs/data.c:1096 f2fs_get_read_data_folio+0x4a4/0x7d0 fs/f2fs/data.c:1271 f2fs_get_lock_data_folio+0x54/0x1f0 fs/f2fs/data.c:1322 move_data_page fs/f2fs/gc.c:1457 [inline] gc_data_segment fs/f2fs/gc.c:1681 [inline] do_garbage_collect+0x3025/0x64b0 fs/f2fs/gc.c:1823 f2fs_gc+0xc69/0x2540 fs/f2fs/gc.c:1927 f2fs_balance_fs+0x5a3/0x750 fs/f2fs/segment.c:465 f2fs_map_blocks+0x3c19/0x4510 fs/f2fs/data.c:1791 f2fs_expand_inode_data+0x748/0xc10 fs/f2fs/file.c:1909 f2fs_fallocate+0x4f5/0x990 fs/f2fs/file.c:2012 vfs_fallocate+0x6a3/0x830 fs/open.c:341 ioctl_preallocate fs/ioctl.c:290 [inline] file_ioctl+0x611/0x780 fs/ioctl.c:-1 do_vfs_ioctl+0xe80/0x1990 fs/ioctl.c:886 __do_sys_ioctl fs/ioctl.c:905 [inline] __se_sys_ioctl+0x82/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f739bb8e929 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:00007f739caaf038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f739bdb6080 RCX: 00007f739bb8e929 RDX: 00002000000000c0 RSI: 0000000040305828 RDI: 0000000000000005 RBP: 00007f739bc10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f739bdb6080 R15: 00007ffe9a836028