missing backpointer for btree=freespace l=1 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 64 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0 got: u64s 5 type deleted 0:7602176:0 len 0 ver 0 want: u64s 9 type backpointer 0:7602176:0 len 0 ver 0: bucket=0:29:0 btree=freespace l=1 offset=0:0 len=256 pos=SPOS_MAX, fixing done bcachefs (loop2): check_alloc_to_lru_refs... done bcachefs (loop2): reconstruct_snapshots... snapshot node 4294905343 from tree 4294905343 missing, recreating ------------[ cut here ]------------ kernel BUG at fs/bcachefs/bkey_types.h:210! Oops: invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 1 UID: 0 PID: 3349 Comm: syz.2.16 Not tainted 6.12.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:bkey_s_c_to_subvolume fs/bcachefs/bkey_types.h:210 [inline] RIP: 0010:check_snapshot_exists fs/bcachefs/snapshot.c:944 [inline] RIP: 0010:bch2_reconstruct_snapshots+0xeea/0xf00 fs/bcachefs/snapshot.c:1062 Code: 91 00 00 41 be 59 f7 ff ff e9 f0 f4 ff ff 84 c9 0f 85 e8 f4 ff ff e9 f6 f5 ff ff 48 89 ef 44 89 ee e8 6a c4 f2 ff 90 0f 0b 90 <0f> 0b e8 4f 72 14 01 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 RSP: 0018:ffffc90003837960 EFLAGS: 00010283 RAX: ffffc90003837a58 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff88810db800b8 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffffff819fb03b R08: 0000000000000008 R09: 0000000000000001 R10: 0000000000000000 R11: ffffc90003837a28 R12: ffff88810bfecd00 R13: ffff888109e9ef18 R14: 00000000ffff0dff R15: ffff888102736c30 FS: 00007ff5aa85d6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005609bd504658 CR3: 000000010afc8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:185 [inline] bch2_run_recovery_passes+0x14f/0x240 fs/bcachefs/recovery_passes.c:232 bch2_fs_recovery+0x8a5/0x11e0 fs/bcachefs/recovery.c:862 bch2_fs_start+0x1b9/0x270 fs/bcachefs/super.c:1037 bch2_fs_get_tree+0x2b8/0x690 fs/bcachefs/fs.c:2176 vfs_get_tree+0x27/0xf0 fs/super.c:1800 do_new_mount+0x15a/0x3a0 fs/namespace.c:3507 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4055 [inline] __se_sys_mount+0x148/0x1b0 fs/namespace.c:4032 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xe0/0x220 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff5a998e58a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff5aa85ce68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ff5aa85cef0 RCX: 00007ff5a998e58a RDX: 00004000000058c0 RSI: 0000400000005900 RDI: 00007ff5aa85ceb0 RBP: 00004000000058c0 R08: 00007ff5aa85cef0 R09: 0000000001000000 R10: 0000000001000000 R11: 0000000000000246 R12: 0000400000005900 R13: 00007ff5aa85ceb0 R14: 0000000000005934 R15: 0000400000002140 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bkey_s_c_to_subvolume fs/bcachefs/bkey_types.h:210 [inline] RIP: 0010:check_snapshot_exists fs/bcachefs/snapshot.c:944 [inline] RIP: 0010:bch2_reconstruct_snapshots+0xeea/0xf00 fs/bcachefs/snapshot.c:1062 Code: 91 00 00 41 be 59 f7 ff ff e9 f0 f4 ff ff 84 c9 0f 85 e8 f4 ff ff e9 f6 f5 ff ff 48 89 ef 44 89 ee e8 6a c4 f2 ff 90 0f 0b 90 <0f> 0b e8 4f 72 14 01 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 RSP: 0018:ffffc90003837960 EFLAGS: 00010283 RAX: ffffc90003837a58 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff88810db800b8 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffffff819fb03b R08: 0000000000000008 R09: 0000000000000001 R10: 0000000000000000 R11: ffffc90003837a28 R12: ffff88810bfecd00 R13: ffff888109e9ef18 R14: 00000000ffff0dff R15: ffff888102736c30 FS: 00007ff5aa85d6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005609bd504658 CR3: 000000010afc8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400