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 bucket 0:35 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 c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing bucket 0:29 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 e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_iter.c:631! Oops: invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 0 UID: 0 PID: 3348 Comm: syz.2.15 Not tainted 6.12.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:bch2_btree_path_level_init+0x10b/0x110 fs/bcachefs/btree_iter.c:631 Code: 08 74 1a 80 78 02 00 75 14 48 89 df 4c 89 f6 e8 eb 88 fe ff 0f b7 03 66 3b 43 02 75 d2 5b 41 5c 41 5e 41 5f c3 cc cc cc cc 90 <0f> 0b 90 0f 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 RSP: 0018:ffffc90003657528 EFLAGS: 00010287 RAX: 0000000000000000 RBX: ffff888179e01758 RCX: 0000000000000000 RDX: ffff888106720000 RSI: 0000000000000000 RDI: ffff888110300000 RBP: ffff88810c3e0000 R08: 0000000000000000 R09: 0000000000000000 R10: 00a5546639e45fc5 R11: ffffc900036578c8 R12: ffff88810c3e01c8 R13: ffff888106720000 R14: ffff88810c3e02d8 R15: 0000000000000000 FS: 00007f106af186c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f106a1618a0 CR3: 000000010d38c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btree_path_lock_root fs/bcachefs/btree_iter.c:769 [inline] bch2_btree_path_traverse_one+0x19c/0xd00 fs/bcachefs/btree_iter.c:1170 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:247 [inline] __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2197 [inline] bch2_btree_iter_peek_upto+0x332/0xf40 fs/bcachefs/btree_iter.c:2297 bch2_btree_iter_peek_upto_type fs/bcachefs/btree_iter.h:685 [inline] bch2_gc_btree fs/bcachefs/btree_gc.c:670 [inline] bch2_gc_btrees fs/bcachefs/btree_gc.c:729 [inline] bch2_check_allocations+0xc07/0x22b0 fs/bcachefs/btree_gc.c:1123 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:861 bch2_fs_start+0x1b9/0x270 fs/bcachefs/super.c:1037 bch2_fs_get_tree+0x2b5/0x640 fs/bcachefs/fs.c:2080 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:0x7f106a17feba 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:00007f106af17e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f106af17ef0 RCX: 00007f106a17feba RDX: 0000000020000080 RSI: 0000000020000000 RDI: 00007f106af17eb0 RBP: 0000000020000080 R08: 00007f106af17ef0 R09: 0000000000000844 R10: 0000000000000844 R11: 0000000000000246 R12: 0000000020000000 R13: 00007f106af17eb0 R14: 0000000000005991 R15: 0000000020005a80 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_btree_path_level_init+0x10b/0x110 fs/bcachefs/btree_iter.c:631 Code: 08 74 1a 80 78 02 00 75 14 48 89 df 4c 89 f6 e8 eb 88 fe ff 0f b7 03 66 3b 43 02 75 d2 5b 41 5c 41 5e 41 5f c3 cc cc cc cc 90 <0f> 0b 90 0f 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 RSP: 0018:ffffc90003657528 EFLAGS: 00010287 RAX: 0000000000000000 RBX: ffff888179e01758 RCX: 0000000000000000 RDX: ffff888106720000 RSI: 0000000000000000 RDI: ffff888110300000 RBP: ffff88810c3e0000 R08: 0000000000000000 R09: 0000000000000000 R10: 00a5546639e45fc5 R11: ffffc900036578c8 R12: ffff88810c3e01c8 R13: ffff888106720000 R14: ffff88810c3e02d8 R15: 0000000000000000 FS: 00007f106af186c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f106a1618a0 CR3: 000000010d38c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400