------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_journal_iter.c:83! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 1 UID: 0 PID: 7273 Comm: syz.3.162 Not tainted 6.15.0-rc2-syzkaller-gc72692105976 #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+0x1244/0x1248 fs/bcachefs/btree_journal_iter.c:83 lr : bch2_journal_keys_peek_max+0x1244/0x1248 fs/bcachefs/btree_journal_iter.c:83 sp : ffff8000a4706380 x29: ffff8000a47064c0 x28: ffff7000148e0ca8 x27: ffff8000a4706d50 x26: ffff0000f77caf10 x25: dfff800000000000 x24: ffff8000a4706560 x23: ffff8000a4706d50 x22: ffff0000f7780000 x21: ffff8000a4706440 x20: ffffffffffffffff x19: 000000000000003b x18: ffff8000a4706d0c x17: ffffffff00000000 x16: ffff80008b8fc00c x15: ffff7000148e0cb6 x14: 1ffff000148e0cb4 x13: ffff7000148e0c88 x12: f3040000f1f1f1f1 x11: 0000000000080000 x10: 000000000000ae04 x9 : ffff8000a80b4000 x8 : 000000000000ae05 x7 : 2000000000000000 x6 : 00000008ffffffff x5 : ffff8000a4706d50 x4 : ffff8000a47065a0 x3 : ffff8000a4706560 x2 : 0000000000000000 x1 : 000000000000003b x0 : ffffffffffffffff Call trace: bch2_journal_keys_peek_max+0x1244/0x1248 fs/bcachefs/btree_journal_iter.c:83 (P) bch2_btree_journal_peek fs/bcachefs/btree_iter.c:2110 [inline] btree_trans_peek_journal+0x25c/0x3b8 fs/bcachefs/btree_iter.c:2139 __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2276 [inline] bch2_btree_iter_peek_max+0x1010/0x4814 fs/bcachefs/btree_iter.c:2347 bch2_btree_iter_peek_slot+0xac0/0x1e54 fs/bcachefs/btree_iter.c:2814 bch2_btree_iter_peek_prev_min+0x1c4/0x4eac fs/bcachefs/btree_iter.c:2589 __bch2_resume_logged_op_finsert+0x788/0x23b0 fs/bcachefs/io_misc.c:432 bch2_fcollapse_finsert+0x21c/0x338 fs/bcachefs/io_misc.c:536 bchfs_fcollapse_finsert+0x30c/0x4e0 fs/bcachefs/fs-io.c:595 bch2_fallocate_dispatch+0x360/0x60c fs/bcachefs/fs-io.c:-1 vfs_fallocate+0x578/0x6c0 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+0xc0/0x110 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+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 Code: f9400273 17ffffba 95539bcc 97718900 (d4210000) ---[ end trace 0000000000000000 ]---