u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 4a8b0fa43a9980a6 written 24 min_key POS_MIN durability: 1 ptr: 0:37:0 gen 0 node offset 8/24 bset u64s 5930: bset past end of btree node (offset 8 len 96 but written 24), exiting bcachefs (loop0): Unable to continue, halting bcachefs (loop0): flagging btree backpointers lost data bcachefs (loop0): running explicit recovery pass check_topology (2), currently at recovery_pass_empty (0) error reading btree root btree=backpointers level=0: btree_node_read_error, fixing bcachefs (loop0): check_topology... done bcachefs (loop0): accounting_read... done bcachefs (loop0): alloc_read... done bcachefs (loop0): stripes_read... done bcachefs (loop0): snapshots_read... done bcachefs (loop0): check_allocations... bucket 0:26 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 ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing 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 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 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 bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing bcachefs (loop0): Ratelimiting new instances of previous error bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop0): Ratelimiting new instances of previous error done bcachefs (loop0): going read-write bcachefs (loop0): done starting filesystem ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_journal_iter.c:83! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted 6.14.0-rc4-syzkaller-00073-g5394eea10651 #0 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_journal_keys_peek_max+0x164f/0x1660 fs/bcachefs/btree_journal_iter.c:83 Code: 10 48 8d 5c 08 18 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 cf 73 d9 fd 4c 8b 33 e9 d7 fe ff ff e8 d2 39 72 fd 90 <0f> 0b e8 ea d8 b8 07 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 RSP: 0018:ffffc9000d3ee620 EFLAGS: 00010283 RAX: ffffffff844f842e RBX: 000000000000003d RCX: 0000000000100000 RDX: ffffc9000e792000 RSI: 0000000000019845 RDI: 0000000000019846 RBP: ffffc9000d3ee7e0 R08: ffffffff844f6f25 R09: 0000000000000000 R10: 00000001ffffffff R11: 2000000200000000 R12: dffffc0000000000 R13: ffff888053180000 R14: ffffffffffffffff R15: ffffc9000d3ef018 FS: 00007fedd01006c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fedcf595c60 CR3: 0000000036c02000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_btree_journal_peek fs/bcachefs/btree_iter.c:2137 [inline] btree_trans_peek_journal+0x342/0x5a0 fs/bcachefs/btree_iter.c:2166 __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2303 [inline] bch2_btree_iter_peek_max+0x1502/0x6320 fs/bcachefs/btree_iter.c:2373 bch2_btree_iter_peek_slot+0xe0a/0x27c0 fs/bcachefs/btree_iter.c:2838 bch2_btree_iter_peek_prev_min+0x1f3/0x6390 fs/bcachefs/btree_iter.c:2612 __bch2_resume_logged_op_finsert+0xd5f/0x36b0 fs/bcachefs/io_misc.c:431 bch2_fcollapse_finsert+0x286/0x3b0 fs/bcachefs/io_misc.c:535 bchfs_fcollapse_finsert+0x3a8/0x630 fs/bcachefs/fs-io.c:594 bch2_fallocate_dispatch+0x3c9/0x540 vfs_fallocate+0x623/0x7a0 fs/open.c:338 ksys_fallocate fs/open.c:362 [inline] __do_sys_fallocate fs/open.c:367 [inline] __se_sys_fallocate fs/open.c:365 [inline] __x64_sys_fallocate+0xbc/0x110 fs/open.c:365 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fedcf38d169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007fedd0100038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fedcf5a5fa0 RCX: 00007fedcf38d169 RDX: 0000000000000000 RSI: 0000000000000020 RDI: 0000000000000004 RBP: 00007fedcf40e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000007000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fedcf5a5fa0 R15: 00007ffc9e139558 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_journal_keys_peek_max+0x164f/0x1660 fs/bcachefs/btree_journal_iter.c:83 Code: 10 48 8d 5c 08 18 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 cf 73 d9 fd 4c 8b 33 e9 d7 fe ff ff e8 d2 39 72 fd 90 <0f> 0b e8 ea d8 b8 07 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 RSP: 0018:ffffc9000d3ee620 EFLAGS: 00010283 RAX: ffffffff844f842e RBX: 000000000000003d RCX: 0000000000100000 RDX: ffffc9000e792000 RSI: 0000000000019845 RDI: 0000000000019846 RBP: ffffc9000d3ee7e0 R08: ffffffff844f6f25 R09: 0000000000000000 R10: 00000001ffffffff R11: 2000000200000000 R12: dffffc0000000000 R13: ffff888053180000 R14: ffffffffffffffff R15: ffffc9000d3ef018 FS: 00007fedd01006c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000400000003ff6 CR3: 0000000036c02000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400