bcachefs (loop6): resume_logged_ops... done
bcachefs (loop6): delete_dead_inodes... done
bcachefs (loop6): set_fs_needs_rebalance...
------------[ cut here ]------------
WARNING: CPU: 0 PID: 11614 at fs/bcachefs/btree_iter.c:3194 __bch2_trans_kmalloc+0x50f/0x9d0
Modules linked in:
CPU: 0 UID: 0 PID: 11614 Comm: syz.6.12939 Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #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 c3 cc cc cc cc cc e8 72 20 97 fd 90 <0f> 0b 90 e9 d3 fb ff ff e8 64 20 97 fd 90 0f 0b 90 e9 dc fd ff ff
RSP: 0018:ffffc9002ad565d0 EFLAGS: 00010246
RAX: ffffffff84288efe RBX: ffff888107020000 RCX: 0000000000080000
RDX: ffffc9002e60f000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: 0000000000020000 R08: ffffc9002ad569d0 R09: 0000000000000001
R10: ffffc9002ad568e0 R11: fffff520055aace9 R12: dffffc0000000000
R13: ffff888107020030 R14: 1ffff11020e04000 R15: 0000000000000011
FS:  00007f33407f76c0(0000) GS:ffff8880b8621000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdc053d6000 CR3: 0000000012964000 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_rebalance_needs_scan+0x9a/0x180
 __bch2_run_recovery_passes+0x3bd/0x1060
 bch2_run_recovery_passes+0x184/0x210
 bch2_fs_recovery+0x2690/0x3a50
 bch2_fs_start+0xaaf/0xda0
 bch2_fs_get_tree+0xb39/0x1520
 vfs_get_tree+0x92/0x2b0
 do_new_mount+0x2a2/0x9e0
 __se_sys_mount+0x317/0x410
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f333f99038a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f33407f6e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f33407f6ef0 RCX: 00007f333f99038a
RDX: 000020000000f640 RSI: 0000200000000000 RDI: 00007f33407f6eb0
RBP: 000020000000f640 R08: 00007f33407f6ef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000000
R13: 00007f33407f6eb0 R14: 000000000000f62f R15: 00002000000000c0
 </TASK>
