------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_journal_iter.c:83! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 9942 Comm: syz.4.433 Not tainted 6.16.0-rc2-syzkaller-00378-gb67ec639010f #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:bch2_journal_keys_peek_max+0x1680/0x1690 fs/bcachefs/btree_journal_iter.c:83 Code: b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 23 c2 fe fd 48 8b 1b e9 c2 fe ff ff e8 c6 55 3c 07 e8 81 6a 9d fd 90 <0f> 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 RSP: 0018:ffffc900050c6c20 EFLAGS: 00010283 RAX: ffffffff8422e19f RBX: ffffffffffffffff RCX: 0000000000080000 RDX: ffffc9001244c000 RSI: 0000000000029a6d RDI: 0000000000029a6e RBP: ffffc900050c6de0 R08: 00000008ffffffff R09: 2000000000000000 R10: 0000000000000000 R11: 00000001ffffffff R12: ffffc900050c73d0 R13: dffffc0000000000 R14: 000000000000003b R15: ffff888055a80000 FS: 00007fde23aac6c0(0000) GS:ffff888125c85000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fceb07b1000 CR3: 000000007b72a000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_btree_journal_peek fs/bcachefs/btree_iter.c:2129 [inline] btree_trans_peek_journal+0x259/0x3b0 fs/bcachefs/btree_iter.c:2158 __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2295 [inline] bch2_btree_iter_peek_max+0x111d/0x51f0 fs/bcachefs/btree_iter.c:2365 bch2_btree_iter_peek_slot+0xd02/0x1fa0 fs/bcachefs/btree_iter.c:2837 bch2_btree_iter_peek_prev_min+0x262/0x5400 fs/bcachefs/btree_iter.c:2610 __bch2_resume_logged_op_finsert+0x7fc/0x2240 fs/bcachefs/io_misc.c:432 bch2_fcollapse_finsert+0x19b/0x250 fs/bcachefs/io_misc.c:536 bchfs_fcollapse_finsert+0x378/0x470 fs/bcachefs/fs-io.c:621 bch2_fallocate_dispatch+0x2a4/0x410 fs/bcachefs/fs-io.c:-1 vfs_fallocate+0x6a0/0x830 fs/open.c:341 ksys_fallocate fs/open.c:365 [inline] __do_sys_fallocate fs/open.c:370 [inline] __se_sys_fallocate fs/open.c:368 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:368 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fde22b8e929 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:00007fde23aac038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fde22db5fa0 RCX: 00007fde22b8e929 RDX: 0000000000000000 RSI: 0000000000000020 RDI: 0000000000000007 RBP: 00007fde22c10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000007000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fde22db5fa0 R15: 00007fffd62e51b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_journal_keys_peek_max+0x1680/0x1690 fs/bcachefs/btree_journal_iter.c:83 Code: b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 23 c2 fe fd 48 8b 1b e9 c2 fe ff ff e8 c6 55 3c 07 e8 81 6a 9d fd 90 <0f> 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 RSP: 0018:ffffc900050c6c20 EFLAGS: 00010283 RAX: ffffffff8422e19f RBX: ffffffffffffffff RCX: 0000000000080000 RDX: ffffc9001244c000 RSI: 0000000000029a6d RDI: 0000000000029a6e RBP: ffffc900050c6de0 R08: 00000008ffffffff R09: 2000000000000000 R10: 0000000000000000 R11: 00000001ffffffff R12: ffffc900050c73d0 R13: dffffc0000000000 R14: 000000000000003b R15: ffff888055a80000 FS: 00007fde23aac6c0(0000) GS:ffff888125c85000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fee91d7d000 CR3: 000000007b72a000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400