bcachefs (loop6): done starting filesystem
------------[ cut here ]------------
kernel BUG at fs/bcachefs/btree_trans_commit.c:348!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 1 UID: 0 PID: 13987 Comm: syz.6.670 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:__bch2_trans_commit+0x86e5/0x8870
Code: 92 fd eb 0c e8 ec 34 92 fd eb 05 e8 e5 34 92 fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 48 e9 e1 af ff ff e8 cc 34 92 fd 90 <0f> 0b e8 c4 34 92 fd 90 0f 0b e8 bc 34 92 fd 90 0f 0b e8 b4 34 92
RSP: 0018:ffffc900041bf600 EFLAGS: 00010283
RAX: ffffffff842d7664 RBX: ffffffff842d3835 RCX: 0000000000080000
RDX: ffffc900088c1000 RSI: 0000000000001785 RDI: 0000000000001786
RBP: ffffc900041bf8f0 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed10069c9309 R12: ffff8881229cc020
R13: dffffc0000000000 R14: ffff8881229ce4d8 R15: 0000000000000001
FS:  00007f7903cac6c0(0000) GS:ffff8881a3c1b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000004a80 CR3: 0000000121e0a000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 bch2_setattr_nonsize+0xcf5/0x10e0
 notify_change+0xb36/0xe40
 chmod_common+0x248/0x400
 do_fchmodat+0x12d/0x200
 __x64_sys_fchmodat+0x7d/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7902d8ebe9
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:00007f7903cac038 EFLAGS: 00000246 ORIG_RAX: 000000000000010c
RAX: ffffffffffffffda RBX: 00007f7902fb5fa0 RCX: 00007f7902d8ebe9
RDX: 00000000fffffed3 RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007f7902e11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7902fb6038 R14: 00007f7902fb5fa0 R15: 00007ffe561fa8b8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__bch2_trans_commit+0x86e5/0x8870
Code: 92 fd eb 0c e8 ec 34 92 fd eb 05 e8 e5 34 92 fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 48 e9 e1 af ff ff e8 cc 34 92 fd 90 <0f> 0b e8 c4 34 92 fd 90 0f 0b e8 bc 34 92 fd 90 0f 0b e8 b4 34 92
RSP: 0018:ffffc900041bf600 EFLAGS: 00010283
RAX: ffffffff842d7664 RBX: ffffffff842d3835 RCX: 0000000000080000
RDX: ffffc900088c1000 RSI: 0000000000001785 RDI: 0000000000001786
RBP: ffffc900041bf8f0 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed10069c9309 R12: ffff8881229cc020
R13: dffffc0000000000 R14: ffff8881229ce4d8 R15: 0000000000000001
FS:  00007f7903cac6c0(0000) GS:ffff8881a3c1b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7903c48fc8 CR3: 0000000121e0a000 CR4: 00000000000006f0
