INFO: task bch-reclaim/loo:9130 blocked for more than 144 seconds. Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-reclaim/loo state:D stack:23976 pid:9130 tgid:9130 ppid:2 task_flags:0x200040 flags:0x00004000 Call Trace: <TASK> context_switch kernel/sched/core.c:5367 [inline] __schedule+0x1b18/0x50e0 kernel/sched/core.c:6748 __schedule_loop kernel/sched/core.c:6825 [inline] schedule+0x163/0x360 kernel/sched/core.c:6840 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6897 __mutex_lock_common kernel/locking/mutex.c:664 [inline] __mutex_lock+0x7fa/0x1000 kernel/locking/mutex.c:732 bch2_journal_reclaim_thread+0x16d/0x570 fs/bcachefs/journal_reclaim.c:763 kthread+0x7ab/0x920 kernel/kthread.c:464 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK> INFO: task syz.2.985:9436 blocked for more than 144 seconds. Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.985 state:D stack:24648 pid:9436 tgid:9435 ppid:5835 task_flags:0x400140 flags:0x00004004 Call Trace: <TASK> context_switch kernel/sched/core.c:5367 [inline] __schedule+0x1b18/0x50e0 kernel/sched/core.c:6748 __schedule_loop kernel/sched/core.c:6825 [inline] schedule+0x163/0x360 kernel/sched/core.c:6840 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6897 rwsem_down_read_slowpath kernel/locking/rwsem.c:1084 [inline] __down_read_common kernel/locking/rwsem.c:1248 [inline] __down_read kernel/locking/rwsem.c:1261 [inline] down_read+0x74c/0xae0 kernel/locking/rwsem.c:1526 __super_lock fs/super.c:58 [inline] super_lock+0x27c/0x400 fs/super.c:120 super_lock_shared fs/super.c:139 [inline] iterate_supers+0x8c/0x190 fs/super.c:931 ksys_sync+0xc2/0x1d0 fs/sync.c:102 __do_sys_sync+0xe/0x20 fs/sync.c:113 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f962758d169 RSP: 002b:00007f962849d038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007f96277a5fa0 RCX: 00007f962758d169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f96277a5fa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f96277a5fa0 R15: 00007ffe88401668 </TASK> Showing all locks held in the system: 1 lock held by khungtaskd/31: #0: ffffffff8eb3a760 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8eb3a760 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8eb3a760 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6761 2 locks held by getty/5593: #0: ffff8880317df0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002fd62f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x53d/0x16b0 drivers/tty/n_tty.c:2211 6 locks held by syz-executor/5832: #0: ffff88805017a0e0 (&type->s_umount_key#89){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline] #0: ffff88805017a0e0 (&type->s_umount_key#89){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff88805017a0e0 (&type->s_umount_key#89){++++}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 #1: ffff888047700278 (&c->state_lock){+.+.}-{4:4}, at: __bch2_fs_stop+0xff/0x5b0 fs/bcachefs/super.c:633 #2: ffff88804774b028 (&j->reclaim_lock){+.+.}-{4:4}, at: journal_flush_done+0x85/0x820 fs/bcachefs/journal_reclaim.c:874 #3: ffff888047704378 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #3: ffff888047704378 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #3: ffff888047704378 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3408 #4: ffff888047704720 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1c9e/0x1e70 fs/bcachefs/btree_write_buffer.c:569 #5: ffff8880477266d0 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x68a/0x1680 fs/bcachefs/btree_update_interior.c:1182 1 lock held by bch-reclaim/loo/9130: #0: ffff88804774b028 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16d/0x570 fs/bcachefs/journal_reclaim.c:763 1 lock held by syz.2.985/9436: #0: ffff88805017a0e0 (&type->s_umount_key#89){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff88805017a0e0 (&type->s_umount_key#89){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120 1 lock held by syz.0.1521/11201: #0: ffff88805017a0e0 (&type->s_umount_key#89){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline] #0: ffff88805017a0e0 (&type->s_umount_key#89){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: <TASK> __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x4ab/0x4e0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:236 [inline] watchdog+0x1058/0x10a0 kernel/hung_task.c:399 kthread+0x7ab/0x920 kernel/kthread.c:464 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK> Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 53 Comm: kworker/u8:3 Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: bat_events batadv_nc_worker RIP: 0010:trace_lock_acquire include/trace/events/lock.h:24 [inline] RIP: 0010:lock_acquire+0x57/0x2f0 kernel/locking/lockdep.c:5829 Code: 93 65 48 8b 45 00 48 89 44 24 38 0f 1f 44 00 00 65 8b 05 60 e2 a0 11 83 f8 08 0f 83 b4 01 00 00 89 c0 48 0f a3 05 89 1f 9e 0e <73> 16 e8 d2 c5 09 00 84 c0 75 0d f6 05 cf 2e 88 0e 01 0f 84 9b 01 RSP: 0018:ffffc90000bd7988 EFLAGS: 00000297 RAX: 0000000000000001 RBX: ffff88807a4f1d18 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88807a4f1d18 RBP: ffffffff933fc020 R08: 0000000000000001 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff2079faf R12: 0000000000000001 R13: 0000000000000000 R14: ffff88807a4f1d00 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888125324000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9515b77d38 CR3: 00000000336a4000 CR4: 0000000000350ef0 Call Trace: <NMI> </NMI> <TASK> __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x35/0x50 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] batadv_nc_purge_paths+0xe8/0x3b0 net/batman-adv/network-coding.c:442 batadv_nc_worker+0x328/0x610 net/batman-adv/network-coding.c:720 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xac5/0x18e0 kernel/workqueue.c:3319 worker_thread+0x870/0xd30 kernel/workqueue.c:3400 kthread+0x7ab/0x920 kernel/kthread.c:464 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK>