------------[ 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: 5381 Comm: syz.0.0 Not tainted syzkaller #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: 90 fd eb 0c e8 5c 40 90 fd eb 05 e8 55 40 90 fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 48 e9 e1 af ff ff e8 3c 40 90 fd 90 <0f> 0b e8 34 40 90 fd 90 0f 0b e8 2c 40 90 fd 90 0f 0b e8 24 40 90 RSP: 0018:ffffc9000d4975e0 EFLAGS: 00010287 RAX: ffffffff842f79c4 RBX: ffffffff842f3b95 RCX: 0000000000100000 RDX: ffffc9000f16c000 RSI: 0000000000001b81 RDI: 0000000000001b82 RBP: ffffc9000d4978d0 R08: 0000000000000000 R09: ffffffff842f3b95 R10: dffffc0000000000 R11: ffffed100a829309 R12: ffff888055e50020 R13: dffffc0000000000 R14: ffff888055e524d8 R15: 0000000000000001 FS: 00007f69ae3996c0(0000) GS:ffff88808d007000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000008000 CR3: 0000000042ea7000 CR4: 0000000000352ef0 Call Trace: bch2_trans_commit fs/bcachefs/btree_update.h:241 [inline] bch2_setattr_nonsize+0xcf5/0x10e0 fs/bcachefs/fs.c:1148 notify_change+0xb36/0xe40 fs/attr.c:552 chown_common+0x40c/0x5c0 fs/open.c:791 do_fchownat+0x161/0x270 fs/open.c:822 __do_sys_chown fs/open.c:842 [inline] __se_sys_chown fs/open.c:840 [inline] __x64_sys_chown+0x82/0xa0 fs/open.c:840 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:0x7f69ad58eec9 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:00007f69ae399038 EFLAGS: 00000246 ORIG_RAX: 000000000000005c RAX: ffffffffffffffda RBX: 00007f69ad7e6180 RCX: 00007f69ad58eec9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000000c0 RBP: 00007f69ad611f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f69ad7e6218 R14: 00007f69ad7e6180 R15: 00007fffd4378958 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: 90 fd eb 0c e8 5c 40 90 fd eb 05 e8 55 40 90 fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 48 e9 e1 af ff ff e8 3c 40 90 fd 90 <0f> 0b e8 34 40 90 fd 90 0f 0b e8 2c 40 90 fd 90 0f 0b e8 24 40 90 RSP: 0018:ffffc9000d4975e0 EFLAGS: 00010287 RAX: ffffffff842f79c4 RBX: ffffffff842f3b95 RCX: 0000000000100000 RDX: ffffc9000f16c000 RSI: 0000000000001b81 RDI: 0000000000001b82 RBP: ffffc9000d4978d0 R08: 0000000000000000 R09: ffffffff842f3b95 R10: dffffc0000000000 R11: ffffed100a829309 R12: ffff888055e50020 R13: dffffc0000000000 R14: ffff888055e524d8 R15: 0000000000000001 FS: 00007f69ae3996c0(0000) GS:ffff88808d007000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000008000 CR3: 0000000042ea7000 CR4: 0000000000352ef0