------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_trans_commit.c:348! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5342 Comm: syz.0.0 Not tainted 6.16.0-rc5-syzkaller-00121-gbc9ff192a6c9 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 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: 97 fd eb 0c e8 2c 78 97 fd eb 05 e8 25 78 97 fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 48 e9 e1 af ff ff e8 0c 78 97 fd 90 <0f> 0b e8 04 78 97 fd 90 0f 0b e8 fc 77 97 fd 90 0f 0b e8 f4 77 97 RSP: 0018:ffffc9000d41f220 EFLAGS: 00010287 RAX: ffffffff8428be64 RBX: ffffffff84288035 RCX: 0000000000100000 RDX: ffffc9000e7a3000 RSI: 000000000000eb70 RDI: 000000000000eb71 RBP: ffffc9000d41f510 R08: 0000000000000000 R09: ffffffff84288035 R10: dffffc0000000000 R11: ffffed100a639309 R12: ffff888052920020 R13: dffffc0000000000 R14: ffff8880529224d8 R15: 0000000000000001 FS: 00007efd9d7706c0(0000) GS:ffff88808d21b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efd9d76df70 CR3: 000000003ecd1000 CR4: 0000000000352ef0 Call Trace: bch2_trans_commit fs/bcachefs/btree_update.h:241 [inline] __bch2_create+0x887/0xb90 fs/bcachefs/fs.c:593 bch2_mknod fs/bcachefs/fs.c:748 [inline] bch2_create+0x66/0xd0 fs/bcachefs/fs.c:762 lookup_open fs/namei.c:3717 [inline] open_last_lookups fs/namei.c:3816 [inline] path_openat+0x14f4/0x3830 fs/namei.c:4052 do_filp_open+0x1fa/0x410 fs/namei.c:4082 do_sys_openat2+0x121/0x1c0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1463 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:0x7efd9c98e929 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:00007efd9d770038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007efd9cbb6080 RCX: 00007efd9c98e929 RDX: 000000000000275a RSI: 0000200000000540 RDI: ffffffffffffff9c RBP: 00007efd9ca10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007efd9cbb6080 R15: 00007ffe71b64468 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: 97 fd eb 0c e8 2c 78 97 fd eb 05 e8 25 78 97 fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 48 e9 e1 af ff ff e8 0c 78 97 fd 90 <0f> 0b e8 04 78 97 fd 90 0f 0b e8 fc 77 97 fd 90 0f 0b e8 f4 77 97 RSP: 0018:ffffc9000d41f220 EFLAGS: 00010287 RAX: ffffffff8428be64 RBX: ffffffff84288035 RCX: 0000000000100000 RDX: ffffc9000e7a3000 RSI: 000000000000eb70 RDI: 000000000000eb71 RBP: ffffc9000d41f510 R08: 0000000000000000 R09: ffffffff84288035 R10: dffffc0000000000 R11: ffffed100a639309 R12: ffff888052920020 R13: dffffc0000000000 R14: ffff8880529224d8 R15: 0000000000000001 FS: 00007efd9d7706c0(0000) GS:ffff88808d21b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa961f46000 CR3: 000000003ecd1000 CR4: 0000000000352ef0