loop0: detected capacity change from 0 to 16384 bcachefs (loop0): starting version 1.13: inode_has_child_snapshots opts=metadata_checksum=none,data_checksum=none,metadata_target=invalid device 255 features: new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 bcachefs (loop0): initializing new filesystem bcachefs (loop0): going read-write bcachefs (loop0): marking superblocks ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5353 at fs/bcachefs/btree_iter.c:3194 __bch2_trans_kmalloc+0x50f/0x9d0 fs/bcachefs/btree_iter.c:3194 Modules linked in: CPU: 0 UID: 0 PID: 5353 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:__bch2_trans_kmalloc+0x50f/0x9d0 fs/bcachefs/btree_iter.c:3194 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 c8 bb 53 07 cc e8 e2 fb 94 fd 90 <0f> 0b 90 e9 d3 fb ff ff e8 d4 fb 94 fd 90 0f 0b 90 e9 dc fd ff ff RSP: 0018:ffffc9000d356010 EFLAGS: 00010246 RAX: ffffffff842abf5e RBX: ffff8880533c0000 RCX: 0000000000100000 RDX: ffffc9000e402000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: 0000000000020000 R08: ffffc9000d356410 R09: 0000000000000001 R10: ffffc9000d356320 R11: fffff52001a6ac31 R12: dffffc0000000000 R13: ffff8880533c0030 R14: 1ffff1100a678000 R15: 0000000000000011 FS: 00007fa057d326c0(0000) GS:ffff88808d20f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f77a1968000 CR3: 000000003fd3c000 CR4: 0000000000352ef0 Call Trace: bch2_trans_kmalloc_nomemzero_ip fs/bcachefs/btree_iter.h:586 [inline] bch2_trans_kmalloc_nomemzero fs/bcachefs/btree_iter.h:621 [inline] bch2_alloc_sectors_start_trans+0x1d59/0x1e80 fs/bcachefs/alloc_foreground.c:1251 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:320 [inline] bch2_btree_reserve_get+0x641/0x1810 fs/bcachefs/btree_update_interior.c:534 bch2_btree_update_start+0x18ff/0x1de0 fs/bcachefs/btree_update_interior.c:1289 bch2_btree_split_leaf+0x14b/0x8e0 fs/bcachefs/btree_update_interior.c:1921 bch2_trans_commit_error+0x1b7/0x1130 fs/bcachefs/btree_trans_commit.c:914 __bch2_trans_commit+0x1bb5/0x8870 fs/bcachefs/btree_trans_commit.c:1104 bch2_trans_commit fs/bcachefs/btree_update.h:241 [inline] bch2_trans_mark_metadata_bucket+0x566/0x1260 fs/bcachefs/buckets.c:1091 bch2_trans_mark_metadata_sectors fs/bcachefs/buckets.c:1108 [inline] __bch2_trans_mark_dev_sb fs/bcachefs/buckets.c:1148 [inline] bch2_trans_mark_dev_sb+0x3ed/0x7c0 fs/bcachefs/buckets.c:1176 bch2_trans_mark_dev_sbs_flags+0x49c/0x500 fs/bcachefs/buckets.c:1186 bch2_fs_initialize+0xd47/0x1550 fs/bcachefs/recovery.c:1235 bch2_fs_start+0xaa0/0xda0 fs/bcachefs/super.c:1214 bch2_fs_get_tree+0xb39/0x1520 fs/bcachefs/fs.c:2488 vfs_get_tree+0x92/0x2b0 fs/super.c:1815 do_new_mount+0x2a2/0x9e0 fs/namespace.c:3808 do_mount fs/namespace.c:4136 [inline] __do_sys_mount fs/namespace.c:4347 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4324 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:0x7fa056f9038a 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:00007fa057d31e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fa057d31ef0 RCX: 00007fa056f9038a RDX: 0000200000024c80 RSI: 0000200000000000 RDI: 00007fa057d31eb0 RBP: 0000200000024c80 R08: 00007fa057d31ef0 R09: 0000000000000080 R10: 0000000000000080 R11: 0000000000000246 R12: 0000200000000000 R13: 00007fa057d31eb0 R14: 0000000000024c71 R15: 0000200000000180