------------[ cut here ]-[ 128.492696][ T1021] ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_trans_commit.c:348! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 1021 Comm: kworker/u8:6 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Workqueue: writeback wb_workfn (flush-bcachefs-1) RIP: 0010:btree_insert_entry_checks fs/bcachefs/btree_trans_commit.c:343 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:725 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:854 [inline] RIP: 0010:__bch2_trans_commit+0x86e5/0x8870 fs/bcachefs/btree_trans_commit.c:1085 Code: 9b fd eb 0c e8 ac 04 9b fd eb 05 e8 a5 04 9b fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 48 e9 e1 af ff ff e8 8c 04 9b fd 90 <0f> 0b e8 84 04 9b fd 90 0f 0b e8 7c 04 9b fd 90 0f 0b e8 74 04 9b RSP: 0018:ffffc9000477ed00 EFLAGS: 00010293 RAX: ffffffff842357c4 RBX: ffffffff84231995 RCX: ffff888025a05940 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000477eff0 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed100b2ed6c9 R12: ffff8880301d8020 R13: dffffc0000000000 R14: ffff8880301da4d8 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8881268c2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30c63fff CR3: 0000000035f10000 CR4: 00000000003526f0 Call Trace: bch2_trans_commit fs/bcachefs/btree_update.h:241 [inline] bch2_write_inode+0x64a/0xad0 fs/bcachefs/fs.c:136 bch2_vfs_write_inode+0x84/0xd0 fs/bcachefs/fs.c:2148 write_inode fs/fs-writeback.c:1525 [inline] __writeback_single_inode+0x6f1/0x1000 fs/fs-writeback.c:1745 writeback_sb_inodes+0x6b7/0xf60 fs/fs-writeback.c:1976 wb_writeback+0x43b/0xaf0 fs/fs-writeback.c:2156 wb_do_writeback fs/fs-writeback.c:2303 [inline] wb_workfn+0x40e/0xf00 fs/fs-writeback.c:2343 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btree_insert_entry_checks fs/bcachefs/btree_trans_commit.c:343 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:725 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:854 [inline] RIP: 0010:__bch2_trans_commit+0x86e5/0x8870 fs/bcachefs/btree_trans_commit.c:1085 Code: 9b fd eb 0c e8 ac 04 9b fd eb 05 e8 a5 04 9b fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 48 e9 e1 af ff ff e8 8c 04 9b fd 90 <0f> 0b e8 84 04 9b fd 90 0f 0b e8 7c 04 9b fd 90 0f 0b e8 74 04 9b RSP: 0018:ffffc9000477ed00 EFLAGS: 00010293 RAX: ffffffff842357c4 RBX: ffffffff84231995 RCX: ffff888025a05940 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000477eff0 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed100b2ed6c9 R12: ffff8880301d8020 R13: dffffc0000000000 R14: ffff8880301da4d8 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8881268c2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c007aab000 CR3: 0000000035152000 CR4: 00000000003526f0