------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_trans_commit.c:348! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 6547 Comm: syz-executor Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 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 : ffff8000a3f17540 x29: ffff8000a3f17860 x28: 00000000ffffffff x27: ffff0000f78624d8 x26: ffff800092df2000 x25: 0000000000000000 x24: dfff800000000000 x23: ffff800092df2000 x22: ffff0000f7860020 x21: ffff0000f7860042 x20: 0000000000000001 x19: 0000000000000001 x18: 00000000ffffffff x17: ffff800093507000 x16: ffff80008b007340 x15: 0000000000000002 x14: 1ffff000147e2dd0 x13: 0000000000000000 x12: 0000000000000000 x11: 000000003fa13a62 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000cb609e80 x7 : ffff8000828f3158 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000002 x2 : 0000000000000008 x1 : 0000000000000080 x0 : ffff0000cb609e80 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_unlink+0x22c/0x448 fs/bcachefs/fs.c:827 bch2_unlink+0xb8/0x100 fs/bcachefs/fs.c:864 vfs_unlink+0x2e0/0x520 fs/namei.c:4586 do_unlinkat+0x2b8/0x488 fs/namei.c:4650 __do_sys_unlinkat fs/namei.c:4691 [inline] __se_sys_unlinkat fs/namei.c:4684 [inline] __arm64_sys_unlinkat+0xdc/0xf8 fs/namei.c:4684 __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+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Code: f940abe0 978e09e2 17ffffe0 97790f85 (d4210000) ---[ end trace 0000000000000000 ]---