bcachefs (loop1): inconsistency detected - emergency read only at journal seq 7 ------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 22 seconds WARNING: CPU: 0 PID: 7720 at fs/bcachefs/btree_iter.c:3002 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3000 [inline] WARNING: CPU: 0 PID: 7720 at fs/bcachefs/btree_iter.c:3002 bch2_trans_put+0xb08/0xc8c fs/bcachefs/btree_iter.c:3246 Modules linked in: CPU: 0 UID: 0 PID: 7720 Comm: syz.1.241 Not tainted 6.11.0-rc7-syzkaller-g5f5673607153 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3000 [inline] pc : bch2_trans_put+0xb08/0xc8c fs/bcachefs/btree_iter.c:3246 lr : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3000 [inline] lr : bch2_trans_put+0xb08/0xc8c fs/bcachefs/btree_iter.c:3246 sp : ffff80009be16f40 x29: ffff80009be16f80 x28: 0000000000000040 x27: dfff800000000000 x26: ffff0000eceac1b8 x25: 0000000000000040 x24: 1fffe0001d9d5808 x23: ffff80008f4ef000 x22: fffffffffffffb37 x21: ffff0000eceac042 x20: 1ffff00011e9de40 x19: 00000000ffffb76a x18: 0000000000000008 x17: 0000000000000000 x16: ffff800083032784 x15: 0000000000000001 x14: 1fffe000366d325a x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 000000000003ffff x9 : 8a8c87f110116b00 x8 : 8a8c87f110116b00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009be16698 x4 : ffff80008f65b620 x3 : ffff8000806051a0 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: check_srcu_held_too_long fs/bcachefs/btree_iter.c:3000 [inline] bch2_trans_put+0xb08/0xc8c fs/bcachefs/btree_iter.c:3246 bch2_btree_root_read+0x468/0x53c fs/bcachefs/btree_io.c:1773 read_btree_roots+0x250/0x798 fs/bcachefs/recovery.c:523 bch2_fs_recovery+0x3278/0x5514 fs/bcachefs/recovery.c:851 bch2_fs_start+0x30c/0x53c fs/bcachefs/super.c:1036 bch2_fs_get_tree+0x938/0x1030 fs/bcachefs/fs.c:1946 vfs_get_tree+0x90/0x28c fs/super.c:1800 do_new_mount+0x278/0x900 fs/namespace.c:3472 path_mount+0x590/0xe04 fs/namespace.c:3799 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount fs/namespace.c:3997 [inline] __arm64_sys_mount+0x45c/0x5a8 fs/namespace.c:3997 __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:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 130426 hardirqs last enabled at (130425): [] __up_console_sem kernel/printk/printk.c:341 [inline] hardirqs last enabled at (130425): [] __console_unlock kernel/printk/printk.c:2801 [inline] hardirqs last enabled at (130425): [] console_unlock+0x18c/0x3d4 kernel/printk/printk.c:3120 hardirqs last disabled at (130426): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (130352): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (130352): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (130343): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- bcachefs (loop1): accounting_read... done bcachefs (loop1): alloc_read... done bcachefs (loop1): stripes_read... done bcachefs (loop1): snapshots_read... done bcachefs (loop1): check_allocations... btree ptr not marked in member info btree allocated bitmap u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 75277f57b0c8c24 written 32 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, shutting down bcachefs (loop1): bch2_gc_mark_key(): error fsck_errors_not_fixed bcachefs (loop1): bch2_gc_btree(): error fsck_errors_not_fixed bcachefs (loop1): bch2_gc_btrees(): error fsck_errors_not_fixed bcachefs (loop1): bch2_check_allocations(): error fsck_errors_not_fixed bcachefs (loop1): bch2_fs_recovery(): error fsck_errors_not_fixed bcachefs (loop1): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed bcachefs (loop1): shutting down bcachefs (loop1): shutdown complete bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed