INFO: task kworker/u4:14:15653 blocked for more than 143 seconds. Not tainted 6.8.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:14 state:D stack:20560 pid:15653 tgid:15653 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-7:1) 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 f2fs_down_write fs/f2fs/f2fs.h:2138 [inline] f2fs_balance_fs+0x500/0x730 fs/f2fs/segment.c:437 f2fs_write_inode+0x3f0/0x470 fs/f2fs/inode.c:794 write_inode fs/fs-writeback.c:1473 [inline] __writeback_single_inode+0x69f/0xfd0 fs/fs-writeback.c:1690 writeback_sb_inodes+0x8e3/0x1220 fs/fs-writeback.c:1916 __writeback_inodes_wb+0x11b/0x260 fs/fs-writeback.c:1987 wb_writeback+0x461/0xc80 fs/fs-writeback.c:2094 wb_check_old_data_flush fs/fs-writeback.c:2198 [inline] wb_do_writeback fs/fs-writeback.c:2251 [inline] wb_workfn+0xb7c/0xfb0 fs/fs-writeback.c:2279 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x913/0x1420 kernel/workqueue.c:2706 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787 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:243 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #0: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by getty/4811: #0: ffff88802ab9e0a0 (&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+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 4 locks held by kworker/u4:14/15653: #0: ffff888017ed9d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff888017ed9d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffffc90003f1fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] ffffc90003f1fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #2: ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:561 #3: ffff88801c7b12a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2138 [inline] #3: ffff88801c7b12a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x500/0x730 fs/f2fs/segment.c:437 6 locks held by syz-executor.1/25419: 2 locks held by syz-executor.2/26978: #0: ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88801fafa7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801fafa7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2756 2 locks held by syz-executor.2/26979: #0: ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88801fafa7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801fafa7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2756 2 locks held by syz-executor.2/27546: #0: ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88801fafa7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3} , at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] , at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2756 2 locks held by syz-executor.2/27547: #0: ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88801fafa7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801fafa7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2756 3 locks held by kworker/u4:1/27836: #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: ffff88807da85b98 (key#18){+...}-{2:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #2: ffff88807da85b98 (key#18){+...}-{2:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #2: ffff88807da85b98 (key#18){+...}-{2:2}, at: batadv_nc_process_nc_paths+0xb5/0x3a0 net/batman-adv/network-coding.c:687 2 locks held by syz-executor.2/28063: #0: ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88801fafa7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801fafa7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2756 2 locks held by syz-executor.2/28064: #0: ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88803813e0e0 (&type->s_umount_key#90){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88801fafa7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801fafa7d0 (&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.8.0-rc7-syzkaller #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:243 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 129 Comm: kworker/u4:4 Not tainted 6.8.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Workqueue: 0x0 (bat_events) RIP: 0010:debug_object_deactivate+0x4/0x390 lib/debugobjects.c:752 Code: ef 31 00 e9 02 ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa <55> 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec c0 00 RSP: 0018:ffffc90002d9fbf8 EFLAGS: 00000093 RAX: ffffffff81602f86 RBX: 0000000000000004 RCX: ffff88801b7b1dc0 RDX: 0000000000000000 RSI: ffffffff8ba9e500 RDI: ffff888034d916e0 RBP: ffffc90002d9fdc8 R08: ffffffff81602f32 R09: 0000000000000000 R10: ffffc90002d9fd28 R11: fffff520005b3fa7 R12: ffff888034d916e8 R13: dffffc0000000000 R14: ffff888034d916e0 R15: 00000001000168ef FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055768cd38030 CR3: 000000000df32000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: debug_work_deactivate kernel/workqueue.c:583 [inline] process_one_work kernel/workqueue.c:2563 [inline] process_scheduled_works+0x335/0x1420 kernel/workqueue.c:2706 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787 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:243