INFO: task syz-executor.1:7003 blocked for more than 143 seconds. Not tainted 6.8.0-rc5-syzkaller-00029-g39133352cbed #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:24208 pid:7003 tgid:6930 ppid:5091 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0x177f/0x49a0 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6802 [inline] schedule+0x149/0x260 kernel/sched/core.c:6817 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6874 rwsem_down_write_slowpath+0xeea/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1ae/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:802 [inline] f2fs_fallocate+0x344/0x6b0 fs/f2fs/file.c:1816 vfs_fallocate+0x564/0x6c0 fs/open.c:328 do_vfs_ioctl+0x22f4/0x2b60 fs/ioctl.c:850 __do_sys_ioctl fs/ioctl.c:869 [inline] __se_sys_ioctl+0x81/0x170 fs/ioctl.c:857 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7fc43527dda9 RSP: 002b:00007fc4360830c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc4353ac050 RCX: 00007fc43527dda9 RDX: 0000000020000100 RSI: 0000000040305828 RDI: 0000000000000004 RBP: 00007fc4352ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc4353ac050 R15: 00007ffdbc503148 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8e130c60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8e130c60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #0: ffffffff8e130c60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 4 locks held by kworker/u4:2/36: #0: ffff888017e85d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff888017e85d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffffc90000acfd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #1: ffffc90000acfd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #2: ffff8880358b00e0 (&type->s_umount_key#68){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:566 #3: ffff8880695512a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2138 [inline] #3: ffff8880695512a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x500/0x730 fs/f2fs/segment.c:437 2 locks held by kworker/u4:4/59: #0: ffff8880b953c918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559 #1: ffff8880b9528988 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:988 3 locks held by kworker/0:2/782: #0: ffff8880b943c918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559 #1: ffff8880b9428988 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:988 #2: ffffffff946d3d18 (&obj_hash[i].lock){-.-.}-{2:2}, at: __debug_check_no_obj_freed lib/debugobjects.c:978 [inline] #2: ffffffff946d3d18 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_check_no_obj_freed+0x234/0x580 lib/debugobjects.c:1019 2 locks held by getty/4817: #0: ffff88802b7e40a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002efe2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 2 locks held by syz-executor.4/5089: #0: ffff88804a2ee0e0 (&type->s_umount_key#55){+.+.}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff88804a2ee0e0 (&type->s_umount_key#55){+.+.}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88804a2ee0e0 (&type->s_umount_key#55){+.+.}-{3:3}, at: deactivate_super+0xb5/0xf0 fs/super.c:509 #1: ffffffff8e1365f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #1: ffffffff8e1365f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:995 5 locks held by syz-executor.1/6931: 2 locks held by syz-executor.1/7003: #0: ffff8880358b0420 (sb_writers#21){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2792 [inline] #0: ffff8880358b0420 (sb_writers#21){.+.+}-{0:0}, at: vfs_fallocate+0x4d3/0x6c0 fs/open.c:327 #1: ffff888036c7d9c0 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff888036c7d9c0 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: f2fs_fallocate+0x344/0x6b0 fs/f2fs/file.c:1816 2 locks held by syz-executor.1/10644: 2 locks held by syz-executor.3/10647: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.8.0-rc5-syzkaller-00029-g39133352cbed #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 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:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xfaf/0xff0 kernel/hung_task.c:379 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 10644 Comm: syz-executor.1 Not tainted 6.8.0-rc5-syzkaller-00029-g39133352cbed #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:unwind_done arch/x86/include/asm/unwind.h:50 [inline] RIP: 0010:unwind_next_frame+0xa9/0x29e0 arch/x86/kernel/unwind_orc.c:475 Code: e8 03 48 89 44 24 08 42 0f b6 04 28 84 c0 0f 85 68 20 00 00 44 8b 75 00 31 ff 44 89 f6 e8 7f 22 53 00 44 89 b4 24 8c 00 00 00 <45> 85 f6 0f 84 8f 00 00 00 48 89 5c 24 50 bf 01 00 00 00 e8 af fc RSP: 0018:ffffc90004aaef08 EFLAGS: 00000297 RAX: 0000000000000002 RBX: ffffc90004aaf018 RCX: 0000000000040000 RDX: ffff88807f518000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90004aaefe0 R08: ffffffff81404df1 R09: ffffc90004aaf0d0 R10: 0000000000000003 R11: ffffffff818043a0 R12: ffff88807f518000 R13: dffffc0000000000 R14: 0000000000000001 R15: ffffffff81d173d3 FS: 00007f287095a6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1c3b14bd58 CR3: 000000007bafe000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x150/0x1b0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x117/0x1d0 kernel/stacktrace.c:122 save_stack+0xfa/0x1f0 mm/page_owner.c:129 __set_page_owner+0x29/0x380 mm/page_owner.c:195 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1ea/0x210 mm/page_alloc.c:1533 prep_new_page mm/page_alloc.c:1540 [inline] get_page_from_freelist+0x33ea/0x3580 mm/page_alloc.c:3311 __alloc_pages+0x255/0x680 mm/page_alloc.c:4567 alloc_pages_mpol+0x3de/0x650 mm/mempolicy.c:2133 shmem_alloc_folio mm/shmem.c:1628 [inline] shmem_alloc_and_add_folio+0x24f/0xde0 mm/shmem.c:1668 shmem_get_folio_gfp+0x7c3/0x1ef0 mm/shmem.c:2052 shmem_get_folio mm/shmem.c:2134 [inline] shmem_write_begin+0x170/0x4d0 mm/shmem.c:2717 generic_perform_write+0x321/0x640 mm/filemap.c:3930 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2893 call_write_iter include/linux/fs.h:2085 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa81/0xcb0 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f286fc7caef Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 b9 80 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 0c 81 02 00 48 RSP: 002b:00007f2870959e80 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007f286fc7caef RDX: 0000000001000000 RSI: 00007f2866200000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 000000000000559d R10: 0000000020005682 R11: 0000000000000293 R12: 0000000000000003 R13: 00007f2870959f80 R14: 00007f2870959f40 R15: 00007f2866200000