------------[ cut here ]------------ kernel BUG at fs/bcachefs/journal.c:105! invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 1 PID: 2840 Comm: syz-executor Not tainted 6.9.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:journal_seq_to_buf fs/bcachefs/journal.c:105 [inline] RIP: 0010:bch2_journal_noflush_seq+0xcd/0xe0 fs/bcachefs/journal.c:805 Code: f0 00 00 00 48 ff c0 49 39 c7 75 ac eb 06 31 ed eb 0a 31 ed 4c 89 f7 e8 d1 c8 10 01 89 e8 5b 41 5e 41 5f 5d c3 cc cc cc cc 90 <0f> 0b 90 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 90 90 90 RSP: 0018:ffffc90002daf848 EFLAGS: 00010297 RAX: 000000000000000f RBX: ffff88810d7ca180 RCX: 000000000000000e RDX: ffff88810d7ca478 RSI: ffff88810d7ca288 RDI: ffff88810d7ca668 RBP: ffff88810c3e8001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000000e R13: ffff8881057ae828 R14: ffff88810d7ca668 R15: 008bf40000000005 FS: 000055558f395500(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055558f3c0648 CR3: 000000010c7e6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_trigger_alloc+0x5a4/0xdc0 fs/bcachefs/alloc_background.c:833 run_one_mem_trigger+0x23e/0x2b0 bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:713 [inline] do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:876 [inline] __bch2_trans_commit+0x1124/0x1c20 fs/bcachefs/btree_trans_commit.c:1119 bch2_trans_commit fs/bcachefs/btree_update.h:170 [inline] bch2_inode_delete_keys+0x2e6/0x370 fs/bcachefs/inode.c:845 bch2_inode_rm+0x159/0x520 fs/bcachefs/inode.c:874 bch2_evict_inode+0xc1/0x120 fs/bcachefs/fs.c:1565 evict+0xca/0x220 fs/inode.c:667 do_unlinkat+0x213/0x2e0 fs/namei.c:4406 __do_sys_unlink fs/namei.c:4447 [inline] __se_sys_unlink fs/namei.c:4445 [inline] __x64_sys_unlink+0x1e/0x30 fs/namei.c:4445 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xe2/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5efbd75227 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 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:00007ffed65fa198 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5efbd75227 RDX: 00007ffed65fa1c0 RSI: 00007ffed65fa250 RDI: 00007ffed65fa250 RBP: 00007ffed65fa250 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffed65fb340 R13: 00007f5efbde3515 R14: 000000000000f469 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:journal_seq_to_buf fs/bcachefs/journal.c:105 [inline] RIP: 0010:bch2_journal_noflush_seq+0xcd/0xe0 fs/bcachefs/journal.c:805 Code: f0 00 00 00 48 ff c0 49 39 c7 75 ac eb 06 31 ed eb 0a 31 ed 4c 89 f7 e8 d1 c8 10 01 89 e8 5b 41 5e 41 5f 5d c3 cc cc cc cc 90 <0f> 0b 90 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 90 90 90 RSP: 0018:ffffc90002daf848 EFLAGS: 00010297 RAX: 000000000000000f RBX: ffff88810d7ca180 RCX: 000000000000000e RDX: ffff88810d7ca478 RSI: ffff88810d7ca288 RDI: ffff88810d7ca668 RBP: ffff88810c3e8001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000000e R13: ffff8881057ae828 R14: ffff88810d7ca668 R15: 008bf40000000005 FS: 000055558f395500(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055558f3c0648 CR3: 000000010c7e6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400