------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_journal_iter.c:83! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 7498 Comm: syz.5.93 Not tainted 6.15.0-rc5-syzkaller-gc32f8dc5aaf9 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : bch2_journal_keys_peek_max+0x1050/0x1054 fs/bcachefs/btree_journal_iter.c:83 lr : bch2_journal_keys_peek_max+0x1050/0x1054 fs/bcachefs/btree_journal_iter.c:83 sp : ffff8000a2286ac0 x29: ffff8000a2286ba0 x28: 1fffe0001d274802 x27: ffff8000a2286c40 x26: ffff8000a2286ca0 x25: ffff0000ea6caf50 x24: ffff700014450d88 x23: 000000000000003a x22: ffff8000a22871f0 x21: ffff0000ea680000 x20: ffffffffffffffff x19: dfff800000000000 x18: 00000000ffffffff x17: ffffffff00000000 x16: ffff80008ad1d588 x15: ffff700014450d96 x14: 1ffff00014450d94 x13: 0000000020000000 x12: 0000000000000008 x11: ffff700014450d96 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000d96e0000 x7 : 2000000000000000 x6 : 00000008ffffffff x5 : ffff8000a22871f0 x4 : ffff8000a2286ca0 x3 : ffff8000a2286c60 x2 : 0000000000000000 x1 : 000000000000003a x0 : ffffffffffffffff Call trace: bch2_journal_keys_peek_max+0x1050/0x1054 fs/bcachefs/btree_journal_iter.c:83 (P) bch2_btree_journal_peek fs/bcachefs/btree_iter.c:2110 [inline] btree_trans_peek_journal+0x218/0x35c fs/bcachefs/btree_iter.c:2139 __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2276 [inline] bch2_btree_iter_peek_max+0xe88/0x43d8 fs/bcachefs/btree_iter.c:2347 bch2_btree_iter_peek_slot+0x8f4/0x1844 fs/bcachefs/btree_iter.c:2817 bch2_btree_iter_peek_prev_min+0x1ec/0x4784 fs/bcachefs/btree_iter.c:2592 __bch2_resume_logged_op_finsert+0x528/0x17cc fs/bcachefs/io_misc.c:432 bch2_fcollapse_finsert+0x16c/0x214 fs/bcachefs/io_misc.c:536 bchfs_fcollapse_finsert+0x2cc/0x390 fs/bcachefs/fs-io.c:621 bch2_fallocate_dispatch+0x360/0x4e0 fs/bcachefs/fs-io.c:-1 vfs_fallocate+0x5cc/0x73c 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] __arm64_sys_fallocate+0xbc/0x10c fs/open.c:365 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Code: f9400293 17ffffc2 97681372 977caa6c (d4210000) ---[ end trace 0000000000000000 ]---