INFO: task syz-executor.1:12673 blocked for more than 143 seconds. Not tainted 6.6.0-syzkaller-05843-g89ed67ef126c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:23752 pid:12673 tgid:12669 ppid:5087 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1960/0x4a80 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+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+0x35a4/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:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f1d7f87cae9 RSP: 002b:00007f1d805590c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f1d7f99bf80 RCX: 00007f1d7f87cae9 RDX: 0000000000008301 RSI: 000000000000f502 RDI: 0000000000000005 RBP: 00007f1d7f8c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f1d7f99bf80 R15: 00007ffec9ca9108 Showing all locks held in the system: 4 locks held by kworker/u4:1/12: #0: ffff888141e61d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888141e61d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #1: ffffc90000117d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc90000117d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #2: ffff88801773e0e0 (&type->s_umount_key#62){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:607 #3: ffff888079b392a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2133 [inline] #3: ffff888079b392a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x500/0x730 fs/f2fs/segment.c:437 1 lock held by khungtaskd/29: #0: ffffffff8d72d4a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8d72d4a0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d72d4a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613 3 locks held by kworker/u4:7/3171: 2 locks held by getty/4802: #0: ffff88814abfa0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015c72f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2206 2 locks held by syz-executor.1/12673: #0: ffff88801773e418 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write_file+0x61/0x200 fs/namespace.c:448 #1: ffff88803218ad88 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff88803218ad88 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2172 [inline] #1: ffff88803218ad88 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: __f2fs_ioctl+0x35a4/0xb9b0 fs/f2fs/file.c:4224 5 locks held by syz-executor.1/12702: 2 locks held by syz-executor.3/13063: #0: ffff88801773e0e0 (&type->s_umount_key#62){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88801773e0e0 (&type->s_umount_key#62){++++}-{3:3}, at: super_lock+0x176/0x390 fs/super.c:117 #1: ffff888141f847d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff888141f847d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2756 2 locks held by syz-executor.5/13137: #0: ffff88801773e0e0 (&type->s_umount_key#62){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88801773e0e0 (&type->s_umount_key#62){++++}-{3:3}, at: super_lock+0x176/0x390 fs/super.c:117 #1: ffff888141f847d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff888141f847d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2756 2 locks held by syz-executor.3/13165: #0: ffff88801773e0e0 (&type->s_umount_key#62){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88801773e0e0 (&type->s_umount_key#62){++++}-{3:3}, at: super_lock+0x176/0x390 fs/super.c:117 #1: ffff888141f847d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff888141f847d0 (&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.6.0-syzkaller-05843-g89ed67ef126c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/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:242 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 12702 Comm: syz-executor.1 Not tainted 6.6.0-syzkaller-05843-g89ed67ef126c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:filter_irq_stacks+0x3a/0xa0 kernel/stacktrace.c:397 Code: 74 72 49 89 fe 41 89 f4 45 31 ff 48 c7 c5 30 01 20 8b 49 c7 c5 30 c6 1a 8b 48 89 fb eb 0c 49 ff c7 48 83 c3 08 4d 39 fc 74 4f <48> 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 RSP: 0018:ffffc9000682df10 EFLAGS: 00000206 RAX: ffffffff81ea2c56 RBX: ffffc9000682dfb0 RCX: dffffc0000000000 RDX: 0000000000092800 RSI: 0000000000000016 RDI: ffffc9000682dfa0 RBP: ffffffff8b200130 R08: ffffffff8134da8c R09: 1ffffffff1dbeedd R10: dffffc0000000000 R11: fffffbfff1dbeede R12: 0000000000000016 R13: ffffffff8b1ac630 R14: ffffc9000682dfa0 R15: 0000000000000002 FS: 00007f1d805386c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00f2ab000 CR3: 000000001d070000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __stack_depot_save+0x20/0x650 lib/stackdepot.c:377 kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x61/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x66/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x67/0x3d0 mm/slab.h:762 slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x104/0x2c0 mm/slub.c:3502 mempool_alloc+0x194/0x580 mm/mempool.c:398 bio_alloc_bioset+0x26b/0x13f0 block/bio.c:543 f2fs_grab_read_bio+0x275/0x6d0 fs/f2fs/data.c:1116 f2fs_submit_page_read+0xac/0x190 fs/f2fs/data.c:1161 f2fs_get_read_data_page+0x50e/0x850 fs/f2fs/data.c:1348 gc_data_segment fs/f2fs/gc.c:1598 [inline] do_garbage_collect+0x48c1/0x81d0 fs/f2fs/gc.c:1766 f2fs_gc+0xeff/0x3160 fs/f2fs/gc.c:1869 f2fs_balance_fs+0x549/0x730 fs/f2fs/segment.c:439 f2fs_write_single_data_page+0xe60/0x1d60 fs/f2fs/data.c:2965 f2fs_write_cache_pages fs/f2fs/data.c:3210 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3360 [inline] f2fs_write_data_pages+0x1f88/0x35f0 fs/f2fs/data.c:3387 do_writepages+0x3a6/0x670 mm/page-writeback.c:2553 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:390 __filemap_fdatawrite_range mm/filemap.c:423 [inline] filemap_write_and_wait_range+0x1d4/0x2c0 mm/filemap.c:678 f2fs_flush_buffered_write fs/f2fs/file.c:4621 [inline] f2fs_dio_write_iter fs/f2fs/file.c:4728 [inline] f2fs_file_write_iter+0x17b5/0x2390 fs/f2fs/file.c:4790 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x792/0xb20 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f1d7f87cae9 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:00007f1d805380c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1d7f99c050 RCX: 00007f1d7f87cae9 RDX: 00000000fffffdef RSI: 0000000020000000 RDI: 0000000000000007 RBP: 00007f1d7f8c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f1d7f99c050 R15: 00007ffec9ca9108