while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing bcachefs (loop5): bucket 0:38 data type btree ptr gen 0 missing in alloc btree while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing bcachefs (loop5): bucket 0:41 data type btree ptr gen 0 missing in alloc btree while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_iter.c:633! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 1 UID: 0 PID: 8022 Comm: syz.5.233 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 63400005 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : bch2_btree_path_level_init+0x814/0x830 fs/bcachefs/btree_iter.c:114 lr : btree_path_pos_in_node fs/bcachefs/btree_iter.c:114 [inline] lr : bch2_btree_path_level_init+0x814/0x830 fs/bcachefs/btree_iter.c:633 sp : ffff80009d596270 x29: ffff80009d596280 x28: dfff800000000000 x27: 0000000000000000 x26: 0000000000000000 x25: 0000000000008000 x24: 0000000000000000 x23: 0000000000000000 x22: 0000000000000000 x21: ffff0000fbf50360 x20: ffff0000fbf50364 x19: ffff0000d1b8d800 x18: 0000000000000000 x17: 0000000000000000 x16: ffff80008b065ce0 x15: ffff700013ab2c3c x14: 1ffff00013ab2c3c x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000080000 x10: 000000000007ffff x9 : ffff8000a2d79000 x8 : 0000000000080000 x7 : ffff8000828a3684 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000001 x2 : ffff0000d1b8d800 x1 : 0000000000008000 x0 : 0000000000000000 Call trace: btree_path_pos_in_node fs/bcachefs/btree_iter.c:114 [inline] (P) bch2_btree_path_level_init+0x814/0x830 fs/bcachefs/btree_iter.c:633 (P) btree_path_lock_root fs/bcachefs/btree_iter.c:787 [inline] bch2_btree_path_traverse_one+0xa18/0x1f0c fs/bcachefs/btree_iter.c:1203 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:250 [inline] __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2267 [inline] bch2_btree_iter_peek_max+0x740/0x57d4 fs/bcachefs/btree_iter.c:2384 bch2_btree_iter_peek_max_type fs/bcachefs/btree_iter.h:743 [inline] bch2_gc_btree fs/bcachefs/btree_gc.c:729 [inline] bch2_gc_btrees fs/bcachefs/btree_gc.c:792 [inline] bch2_check_allocations+0xc80/0x3c34 fs/bcachefs/btree_gc.c:1094 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:484 [inline] __bch2_run_recovery_passes+0x2b8/0xd54 fs/bcachefs/recovery_passes.c:539 bch2_run_recovery_passes+0x174/0x1f4 fs/bcachefs/recovery_passes.c:610 bch2_fs_recovery+0x1c34/0x2fb4 fs/bcachefs/recovery.c:1016 bch2_fs_start+0x940/0xbec fs/bcachefs/super.c:1213 bch2_fs_get_tree+0x880/0x107c fs/bcachefs/fs.c:2488 vfs_get_tree+0x90/0x28c fs/super.c:1815 do_new_mount+0x278/0x7f4 fs/namespace.c:3808 path_mount+0x5b4/0xde0 fs/namespace.c:4123 do_mount fs/namespace.c:4136 [inline] __do_sys_mount fs/namespace.c:4347 [inline] __se_sys_mount fs/namespace.c:4324 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4324 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 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+0x5c/0x254 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Code: d4210000 977b08c9 d4210000 977b08c7 (d4210000) ---[ end trace 0000000000000000 ]---