------------[ cut here ]------------
WARNING: CPU: 1 PID: 19641 at fs/bcachefs/btree_iter.c:3194 __bch2_trans_kmalloc+0x50f/0x9d0
Modules linked in:
CPU: 1 UID: 0 PID: 19641 Comm: syz.0.1889 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_kmalloc+0x50f/0x9d0
Code: 00 28 00 00 e8 d2 5b 35 00 48 c7 c0 75 f7 ff ff 48 83 c4 48 5b 41 5c 41 5d 41 5e 41 5f 5d e9 08 3f 53 07 cc e8 12 8f 96 fd 90 <0f> 0b 90 e9 d3 fb ff ff e8 04 8f 96 fd 90 0f 0b 90 e9 dc fd ff ff
RSP: 0018:ffffc900037fedb0 EFLAGS: 00010293
RAX: ffffffff84291c1e RBX: ffff8881096e8000 RCX: ffff8880210e9cc0
RDX: 0000000000000000 RSI: 0000000000020000 RDI: 0000000000010000
RBP: 0000000000020000 R08: ffffc900037ff1b0 R09: 0000000000000001
R10: ffffc900037ff0c0 R11: fffff520006ffde5 R12: dffffc0000000000
R13: ffff8881096e8030 R14: 1ffff110212dd000 R15: 0000000000000011
FS:  00007f8242eca6c0(0000) GS:ffff8881a3c1b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000074b000 CR3: 000000010fa24000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 bch2_alloc_sectors_start_trans+0x1d59/0x1e80
 bch2_btree_reserve_get+0x641/0x1810
 bch2_btree_update_start+0x18ff/0x1de0
 bch2_btree_split_leaf+0x14b/0x8e0
 bch2_trans_commit_error+0x1b7/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 bch2_set_quota+0x68f/0x910
 quota_setquota+0x4b7/0x540
 __se_sys_quotactl+0x279/0x950
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8241f8ebe9
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:00007f8242eca038 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3
RAX: ffffffffffffffda RBX: 00007f82421b5fa0 RCX: 00007f8241f8ebe9
RDX: 0000000000000000 RSI: 0000200000000340 RDI: ffffffff80000800
RBP: 00007f8242011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000200000005c00 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f82421b6038 R14: 00007f82421b5fa0 R15: 00007ffc35ff8448
 </TASK>
