------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_trans_commit.c:348! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 1 UID: 0 PID: 1623 Comm: kworker/u8:5 Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Workqueue: writeback wb_workfn (flush-bcachefs-24) pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : btree_insert_entry_checks fs/bcachefs/btree_trans_commit.c:343 [inline] pc : bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:725 [inline] pc : do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:854 [inline] pc : __bch2_trans_commit+0x6054/0x625c fs/bcachefs/btree_trans_commit.c:1085 lr : btree_insert_entry_checks fs/bcachefs/btree_trans_commit.c:343 [inline] lr : bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:725 [inline] lr : do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:854 [inline] lr : __bch2_trans_commit+0x6054/0x625c fs/bcachefs/btree_trans_commit.c:1085 sp : ffff80009ff66c40 x29: ffff80009ff66f60 x28: 00000000ffffffff x27: ffff000101a224d8 x26: ffff800092df2000 x25: 0000000000000000 x24: dfff800000000000 x23: ffff800092df2000 x22: ffff000101a20020 x21: ffff000101a20042 x20: 0000000000000001 x19: 0000000000000001 x18: 00000000ffffffff x17: ffff800093507000 x16: ffff80008b007340 x15: 0000000000000002 x14: 1ffff00013feccb0 x13: 0000000000000000 x12: 0000000000000000 x11: 00000000b224c34f x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000cac45b80 x7 : ffff8000828f3158 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000002 x2 : 0000000000000008 x1 : 0000000000000080 x0 : ffff0000cac45b80 Call trace: btree_insert_entry_checks fs/bcachefs/btree_trans_commit.c:343 [inline] (P) bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:725 [inline] (P) do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:854 [inline] (P) __bch2_trans_commit+0x6054/0x625c fs/bcachefs/btree_trans_commit.c:1085 (P) bch2_trans_commit fs/bcachefs/btree_update.h:241 [inline] bch2_write_inode+0x52c/0x92c fs/bcachefs/fs.c:136 bch2_vfs_write_inode+0x84/0xcc fs/bcachefs/fs.c:2148 write_inode fs/fs-writeback.c:1525 [inline] __writeback_single_inode+0x5ac/0x13e8 fs/fs-writeback.c:1745 writeback_sb_inodes+0x55c/0xe40 fs/fs-writeback.c:1976 wb_writeback+0x3cc/0xd70 fs/fs-writeback.c:2156 wb_do_writeback fs/fs-writeback.c:2303 [inline] wb_workfn+0x338/0xdc0 fs/fs-writeback.c:2343 process_one_work+0x7e8/0x155c kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 Code: f940abe0 978e09e2 17ffffe0 97790f85 (d4210000) ---[ end trace 0000000000000000 ]---