------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 14 seconds WARNING: CPU: 0 PID: 6545 at fs/bcachefs/btree_iter.c:3030 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] WARNING: CPU: 0 PID: 6545 at fs/bcachefs/btree_iter.c:3030 bch2_trans_put+0xb70/0xd00 fs/bcachefs/btree_iter.c:3274 Modules linked in: CPU: 0 UID: 0 PID: 6545 Comm: syz.0.12 Not tainted 6.13.0-rc3-syzkaller-g573067a5a685 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] pc : bch2_trans_put+0xb70/0xd00 fs/bcachefs/btree_iter.c:3274 lr : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] lr : bch2_trans_put+0xb70/0xd00 fs/bcachefs/btree_iter.c:3274 sp : ffff8000a1c76a50 x29: ffff8000a1c76aa0 x28: 0000000000000088 x27: dfff800000000000 x26: ffff0000d49cc1b8 x25: ffff0000f2b80000 x24: 1fffe0001a939808 x23: 1ffff00011f23e40 x22: ffff80008f91f000 x21: ffff0000d49cc042 x20: 00000000ffff9bb7 x19: fffffffffffffe4c x18: 0000000000000008 x17: 0000000000000000 x16: ffff800083275834 x15: 0000000000000001 x14: 1fffe000366fc2ea x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000007ffff x9 : d7d4631016995000 x8 : d7d4631016995000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a1c76178 x4 : ffff80008fa8f840 x3 : ffff80008073f2fc x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] (P) bch2_trans_put+0xb70/0xd00 fs/bcachefs/btree_iter.c:3274 (P) bch2_accounting_read+0x42dc/0x44a4 fs/bcachefs/disk_accounting.c:827 bch2_run_recovery_pass+0xe4/0x1d4 fs/bcachefs/recovery_passes.c:191 bch2_run_recovery_passes+0x30c/0x73c fs/bcachefs/recovery_passes.c:244 bch2_fs_recovery+0x32d8/0x55dc fs/bcachefs/recovery.c:861 bch2_fs_start+0x30c/0x53c fs/bcachefs/super.c:1037 bch2_fs_get_tree+0x938/0x1030 fs/bcachefs/fs.c:2170 vfs_get_tree+0x90/0x28c fs/super.c:1814 do_new_mount+0x278/0x900 fs/namespace.c:3507 path_mount+0x590/0xe04 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount fs/namespace.c:4034 [inline] __arm64_sys_mount+0x4d4/0x5ac fs/namespace.c:4034 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 70302 hardirqs last enabled at (70301): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (70301): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2869 hardirqs last disabled at (70302): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (68616): [] softirq_handle_end kernel/softirq.c:407 [inline] softirqs last enabled at (68616): [] handle_softirqs+0xb44/0xd34 kernel/softirq.c:589 softirqs last disabled at (68123): [] __do_softirq+0x14/0x20 kernel/softirq.c:595 ---[ end trace 0000000000000000 ]--- done bcachefs (loop0): alloc_read... done bcachefs (loop0): stripes_read... done bcachefs (loop0): snapshots_read... done bcachefs (loop0): check_allocations... done bcachefs (loop0): going read-write bcachefs (loop0): bch2_copygc_start(): error creating copygc thread EINTR bcachefs (loop0): error starting copygc thread bcachefs (loop0): bch2_fs_start(): error starting filesystem EINTR bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 bcachefs (loop0): unshutdown complete, journal seq 11 bcachefs (loop0): done going read-only, filesystem not clean bcachefs (loop0): shutdown complete bcachefs: bch2_fs_get_tree() error: EINTR