------------[ 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: 5329 Comm: syz.0.0 Not tainted 6.16.0-rc2-syzkaller-00378-gb67ec639010f #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:724 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:851 [inline] RIP: 0010:__bch2_trans_commit+0x86f0/0x8880 fs/bcachefs/btree_trans_commit.c:1079 Code: 97 fd eb 0c e8 91 ba 97 fd eb 05 e8 8a ba 97 fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 40 e9 7a b0 ff ff e8 71 ba 97 fd 90 <0f> 0b e8 69 ba 97 fd 90 0f 0b e8 61 ba 97 fd 90 0f 0b f3 0f 1e fa RSP: 0018:ffffc9000d5af500 EFLAGS: 00010287 RAX: ffffffff842892af RBX: ffffffff84285506 RCX: 0000000000100000 RDX: ffffc9000de72000 RSI: 0000000000001558 RDI: 0000000000001559 RBP: ffffc9000d5af7f0 R08: 0000000000000000 R09: ffffffff84285506 R10: dffffc0000000000 R11: ffffed100a889309 R12: ffff888055a98020 R13: dffffc0000000000 R14: ffff888055a9a4d8 R15: 0000000000000001 FS: 00007f1ff540f6c0(0000) GS:ffff88808d251000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000004280 CR3: 00000000359f8000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_trans_commit fs/bcachefs/btree_update.h:242 [inline] bch2_xattr_set_handler+0x3d1/0x650 fs/bcachefs/xattr.c:359 __vfs_setxattr+0x43c/0x480 fs/xattr.c:200 __vfs_setxattr_noperm+0x12d/0x660 fs/xattr.c:234 vfs_setxattr+0x16b/0x2f0 fs/xattr.c:321 do_setxattr fs/xattr.c:636 [inline] file_setxattr+0x1da/0x2b0 fs/xattr.c:646 path_setxattrat+0x327/0x3a0 fs/xattr.c:711 __do_sys_fsetxattr fs/xattr.c:761 [inline] __se_sys_fsetxattr fs/xattr.c:758 [inline] __x64_sys_fsetxattr+0xbc/0xe0 fs/xattr.c:758 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:0x7f1ff458e929 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:00007f1ff540f038 EFLAGS: 00000246 ORIG_RAX: 00000000000000be RAX: ffffffffffffffda RBX: 00007f1ff47b5fa0 RCX: 00007f1ff458e929 RDX: 0000200000000140 RSI: 0000200000000100 RDI: 0000000000000004 RBP: 00007f1ff4610b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1ff47b5fa0 R15: 00007fffd2598fd8 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:724 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:851 [inline] RIP: 0010:__bch2_trans_commit+0x86f0/0x8880 fs/bcachefs/btree_trans_commit.c:1079 Code: 97 fd eb 0c e8 91 ba 97 fd eb 05 e8 8a ba 97 fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 40 e9 7a b0 ff ff e8 71 ba 97 fd 90 <0f> 0b e8 69 ba 97 fd 90 0f 0b e8 61 ba 97 fd 90 0f 0b f3 0f 1e fa RSP: 0018:ffffc9000d5af500 EFLAGS: 00010287 RAX: ffffffff842892af RBX: ffffffff84285506 RCX: 0000000000100000 RDX: ffffc9000de72000 RSI: 0000000000001558 RDI: 0000000000001559 RBP: ffffc9000d5af7f0 R08: 0000000000000000 R09: ffffffff84285506 R10: dffffc0000000000 R11: ffffed100a889309 R12: ffff888055a98020 R13: dffffc0000000000 R14: ffff888055a9a4d8 R15: 0000000000000001 FS: 00007f1ff540f6c0(0000) GS:ffff88808d251000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f103eda1796 CR3: 00000000359f8000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400