bcachefs (loop1): check_allocations... done bcachefs (loop1): going read-write bcachefs (loop1): 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: 1 UID: 0 PID: 7780 Comm: syz.1.448 Not tainted 6.14.0-rc4-syzkaller-00015-g2a1944bff549 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:bch2_journal_keys_peek_max+0x1083/0x1300 fs/bcachefs/btree_journal_iter.c:83 Code: b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 08 02 00 00 48 8b 44 24 08 48 8b 18 e9 7a f5 ff ff e8 0e 3a 90 fd 90 <0f> 0b e8 06 3a 90 fd e8 11 df 75 fd 31 ff 89 c3 89 c6 e8 96 34 90 RSP: 0018:ffffc90002fe6ee0 EFLAGS: 00010283 RAX: 00000000000398ef RBX: ffffffffffffffff RCX: ffffc900051d9000 RDX: 0000000000080000 RSI: ffffffff8429a542 RDI: 0000000000000006 RBP: 000000000000003b R08: 0000000000000006 R09: ffffffffffffffff R10: 000000000000003b R11: 0000000000000005 R12: 1ffff920005fcdeb R13: ffffc90002fe7260 R14: ffffc90002fe74f8 R15: ffff88804ea80000 FS: 00007fe49265e6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000040000001e000 CR3: 0000000031372000 CR4: 0000000000350ef0 Call Trace: bch2_btree_journal_peek fs/bcachefs/btree_iter.c:2137 [inline] btree_trans_peek_journal+0x2c0/0x600 fs/bcachefs/btree_iter.c:2166 __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2303 [inline] bch2_btree_iter_peek_max+0x3664/0x5b50 fs/bcachefs/btree_iter.c:2373 bch2_btree_iter_peek_slot+0xeb7/0x26f0 fs/bcachefs/btree_iter.c:2838 bch2_btree_iter_peek_prev_min+0x120f/0x5b80 fs/bcachefs/btree_iter.c:2612 __bch2_resume_logged_op_finsert+0x9c5/0x2340 fs/bcachefs/io_misc.c:431 bch2_fcollapse_finsert+0x319/0x380 fs/bcachefs/io_misc.c:535 bchfs_fcollapse_finsert+0x2c3/0x5f0 fs/bcachefs/fs-io.c:594 bch2_fallocate_dispatch+0x63d/0x6d0 fs/bcachefs/fs-io.c:815 vfs_fallocate+0x610/0x10d0 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+0xd5/0x150 fs/open.c:365 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe49178d169 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:00007fe49265e038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fe4919a5fa0 RCX: 00007fe49178d169 RDX: 0000000000000000 RSI: 0000000000000020 RDI: 0000000000000004 RBP: 00007fe49180e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe4919a5fa0 R15: 00007ffecab50c98 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_journal_keys_peek_max+0x1083/0x1300 fs/bcachefs/btree_journal_iter.c:83 Code: b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 08 02 00 00 48 8b 44 24 08 48 8b 18 e9 7a f5 ff ff e8 0e 3a 90 fd 90 <0f> 0b e8 06 3a 90 fd e8 11 df 75 fd 31 ff 89 c3 89 c6 e8 96 34 90 RSP: 0018:ffffc90002fe6ee0 EFLAGS: 00010283 RAX: 00000000000398ef RBX: ffffffffffffffff RCX: ffffc900051d9000 RDX: 0000000000080000 RSI: ffffffff8429a542 RDI: 0000000000000006 RBP: 000000000000003b R08: 0000000000000006 R09: ffffffffffffffff R10: 000000000000003b R11: 0000000000000005 R12: 1ffff920005fcdeb R13: ffffc90002fe7260 R14: ffffc90002fe74f8 R15: ffff88804ea80000 FS: 00007fe49265e6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb1b200bf98 CR3: 0000000031372000 CR4: 0000000000350ef0