done bcachefs (loop0): alloc_read... done bcachefs (loop0): snapshots_read... done bcachefs (loop0): check_allocations... ------------[ 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: 8079 Comm: syz.0.293 Not tainted 6.16.0-rc5-syzkaller-gec4801305969 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : bch2_btree_path_level_init+0x804/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+0x804/0x830 fs/bcachefs/btree_iter.c:633 sp : ffff80009e0c62f0 x29: ffff80009e0c6300 x28: dfff800000000000 x27: 00000000000000bb x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000000 x23: 0000000000000000 x22: 0000000000000000 x21: ffff0000fe4cc360 x20: ffff0000fe4cc364 x19: ffff0000d5769000 x18: 0000000000000000 x17: 0000000000000000 x16: ffff80008aefc568 x15: ffff700013c18c4c x14: 1ffff00013c18c4c x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000080000 x10: 000000000007ffff x9 : ffff8000a5df9000 x8 : 0000000000080000 x7 : ffff8000828376e8 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000001 x2 : ffff0000d5769000 x1 : 00000000000000bb x0 : 0000000000000000 Call trace: btree_path_pos_in_node fs/bcachefs/btree_iter.c:114 [inline] (P) bch2_btree_path_level_init+0x804/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+0x29c/0xd18 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:1005 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:1804 do_new_mount+0x228/0x814 fs/namespace.c:3902 path_mount+0x5b4/0xde0 fs/namespace.c:4226 do_mount fs/namespace.c:4239 [inline] __do_sys_mount fs/namespace.c:4450 [inline] __se_sys_mount fs/namespace.c:4427 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4427 __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+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Code: d4210000 977c60e5 d4210000 977c60e3 (d4210000) ---[ end trace 0000000000000000 ]---