loop0: detected capacity change from 0 to 32768 bcachefs (/dev/loop0): error reading default superblock: checksum error, type none: got should be bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names bcachefs (loop0): invalid bkey in superblock btree=xattrs level=1: u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:268435487:0 gen 0 invalid pointer past last bucket (268435487 > 128), deleting bcachefs (loop0): invalid bkey in superblock btree=snapshots level=0: u64s 11 type deleted SPOS_MAX len 0 ver 0: nonzero snapshot, deleting bcachefs (loop0): recovering from clean shutdown, journal seq 10 bcachefs (loop0): superblock requires following recovery passes to be run: check_xattrs bcachefs (loop0): Doing compatible version upgrade from 1.7: mi_btree_bitmap to 1.25: extent_flags running recovery passes: check_allocations,check_extents_to_backpointers,check_inodes bcachefs (loop0): bcachefs (loop0): error validating btree node at btree extents level 0/0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 node offset 8/16 bset u64s 49 bset byte offset 176: keys out of order: u64s 10 type inline_data 4100:8:U32_MAX len 8 ver 0 > u64s 7 type inline_data 0:12884901896:U32_MAX len 8 ver 0, fixing bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error btree=extents level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 bcachefs (loop0): accounting_read... done bcachefs (loop0): alloc_read... done bcachefs (loop0): snapshots_read... done bcachefs (loop0): check_allocations... bcachefs (loop0): btree ptr not marked in member info btree allocated bitmap 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 (loop0): bucket 0:27 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 c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0, fixing bcachefs (loop0): btree ptr not marked in member info btree allocated bitmap u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 32369622321725440: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing bcachefs (loop0): btree ptr not marked in member info btree allocated bitmap 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 ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_iter.c:619! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5328 Comm: syz.0.0 Not tainted 6.14.0-syzkaller-12966-ga2cc6ff5ec8f #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:bch2_btree_path_level_init+0x9e4/0xa00 fs/bcachefs/btree_iter.c:619 Code: fd 90 0f 0b e8 ad 18 6c fd 90 0f 0b e8 a5 18 6c fd 90 0f 0b e8 9d 18 6c fd 90 0f 0b e8 95 18 6c fd 90 0f 0b e8 8d 18 6c fd 90 <0f> 0b e8 85 18 6c fd 90 0f 0b e8 7d 18 6c fd 90 0f 0b 66 2e 0f 1f RSP: 0018:ffffc9000d43e200 EFLAGS: 00010283 RAX: ffffffff84573ef3 RBX: 0000000000000000 RCX: 0000000000100000 RDX: ffffc9000de5a000 RSI: 0000000000079bc0 RDI: 0000000000079bc1 RBP: dffffc0000000000 R08: ffffffff8457376b R09: 0000000000000000 R10: dffffc0000000000 R11: fffff52001a87c34 R12: ffff888053681800 R13: 000000000000ffff R14: 0000000000000000 R15: ffff888056740033 FS: 00007f26cd2356c0(0000) GS:ffff88808c599000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055fb93c630c8 CR3: 0000000036696000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btree_path_lock_root fs/bcachefs/btree_iter.c:773 [inline] bch2_btree_path_traverse_one+0x10af/0x2970 fs/bcachefs/btree_iter.c:1189 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:248 [inline] __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2248 [inline] bch2_btree_iter_peek_max+0xc10/0x6370 fs/bcachefs/btree_iter.c:2351 bch2_btree_iter_peek_max_type fs/bcachefs/btree_iter.h:699 [inline] bch2_gc_btree fs/bcachefs/btree_gc.c:677 [inline] bch2_gc_btrees fs/bcachefs/btree_gc.c:740 [inline] bch2_check_allocations+0x12e1/0x6ab0 fs/bcachefs/btree_gc.c:1042 bch2_run_recovery_pass+0xf0/0x1e0 fs/bcachefs/recovery_passes.c:226 bch2_run_recovery_passes+0x2ad/0xa90 fs/bcachefs/recovery_passes.c:285 bch2_fs_recovery+0x292a/0x3e20 fs/bcachefs/recovery.c:936 bch2_fs_start+0x2fb/0x610 fs/bcachefs/super.c:1060 bch2_fs_get_tree+0x113e/0x18f0 fs/bcachefs/fs.c:2253 vfs_get_tree+0x90/0x2b0 fs/super.c:1759 do_new_mount+0x2cf/0xb70 fs/namespace.c:3878 do_mount fs/namespace.c:4218 [inline] __do_sys_mount fs/namespace.c:4429 [inline] __se_sys_mount+0x38c/0x400 fs/namespace.c:4406 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f26cc38e90a 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:00007f26cd234e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f26cd234ef0 RCX: 00007f26cc38e90a RDX: 000020000009de00 RSI: 0000200000005900 RDI: 00007f26cd234eb0 RBP: 000020000009de00 R08: 00007f26cd234ef0 R09: 0000000001000000 R10: 0000000001000000 R11: 0000000000000246 R12: 0000200000005900 R13: 00007f26cd234eb0 R14: 000000000000593c R15: 0000200000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_btree_path_level_init+0x9e4/0xa00 fs/bcachefs/btree_iter.c:619 Code: fd 90 0f 0b e8 ad 18 6c fd 90 0f 0b e8 a5 18 6c fd 90 0f 0b e8 9d 18 6c fd 90 0f 0b e8 95 18 6c fd 90 0f 0b e8 8d 18 6c fd 90 <0f> 0b e8 85 18 6c fd 90 0f 0b e8 7d 18 6c fd 90 0f 0b 66 2e 0f 1f RSP: 0018:ffffc9000d43e200 EFLAGS: 00010283 RAX: ffffffff84573ef3 RBX: 0000000000000000 RCX: 0000000000100000 RDX: ffffc9000de5a000 RSI: 0000000000079bc0 RDI: 0000000000079bc1 RBP: dffffc0000000000 R08: ffffffff8457376b R09: 0000000000000000 R10: dffffc0000000000 R11: fffff52001a87c34 R12: ffff888053681800 R13: 000000000000ffff R14: 0000000000000000 R15: ffff888056740033 FS: 00007f26cd2356c0(0000) GS:ffff88808c599000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055fb93c630c8 CR3: 0000000036696000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400