loop0: detected capacity change from 0 to 32768 bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names bcachefs (loop0): recovering from clean shutdown, journal seq 10 bcachefs (loop0): accounting_read... done bcachefs (loop0): alloc_read... done bcachefs (loop0): stripes_read... done bcachefs (loop0): snapshots_read... done bcachefs (loop0): journal_replay... done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): going read-write bcachefs (loop0): done starting filesystem loop0: detected capacity change from 32768 to 0 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 UID: 0 PID: 5103 Comm: syz.0.0 Not tainted 6.11.0-rc3-syzkaller-00156-gd7a5aa4b3c00 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119 fail_dump lib/fault-inject.c:52 [inline] should_fail_ex+0x3b0/0x4e0 lib/fault-inject.c:153 should_failslab+0xac/0x100 mm/failslab.c:45 slab_pre_alloc_hook mm/slub.c:3941 [inline] slab_alloc_node mm/slub.c:4017 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_node_track_caller_noprof+0xda/0x440 mm/slub.c:4177 __do_krealloc mm/slab_common.c:1280 [inline] krealloc_noprof+0x7d/0x120 mm/slab_common.c:1313 bch2_printbuf_make_room+0x1f1/0x350 fs/bcachefs/printbuf.c:59 bch2_prt_printf+0x267/0x6d0 fs/bcachefs/printbuf.c:186 bch2_btree_path_to_text_short+0x200/0xf60 fs/bcachefs/btree_iter.c:1467 __bch2_trans_paths_to_text+0xe5/0x180 fs/bcachefs/btree_iter.c:1540 bch2_trans_update_max_paths+0x16e/0x420 fs/bcachefs/btree_iter.c:1576 btree_path_alloc+0x872/0xa60 fs/bcachefs/btree_iter.c:1673 bch2_path_get+0xa5f/0x1230 fs/bcachefs/btree_iter.c:1723 bch2_trans_iter_init_common fs/bcachefs/btree_iter.h:484 [inline] bch2_trans_iter_init_outlined+0x2eb/0x4b0 fs/bcachefs/btree_iter.c:2875 bch2_trans_iter_init fs/bcachefs/btree_iter.h:502 [inline] __bch2_bkey_get_iter fs/bcachefs/btree_iter.h:550 [inline] bch2_bkey_get_iter fs/bcachefs/btree_iter.h:565 [inline] bch2_inode_peek_nowarn+0x1f5/0x4d0 fs/bcachefs/inode.c:341 bch2_inode_find_by_inum_nowarn_trans+0xbf/0x140 fs/bcachefs/inode.c:917 bch2_lookup_trans fs/bcachefs/fs.c:442 [inline] bch2_lookup+0xbec/0x16c0 fs/bcachefs/fs.c:483 lookup_open fs/namei.c:3556 [inline] open_last_lookups fs/namei.c:3647 [inline] path_openat+0x11cc/0x3470 fs/namei.c:3883 do_filp_open+0x235/0x490 fs/namei.c:3913 do_sys_openat2+0x13e/0x1d0 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1442 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f500a7799b9 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:00007f500b58a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f500a915f80 RCX: 00007f500a7799b9 RDX: 0000000000000000 RSI: 0000000020004280 RDI: ffffffffffffff9c RBP: 00007f500b58a090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007f500a915f80 R15: 00007fff5e841a88 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5103 at fs/inode.c:1143 discard_new_inode+0x217/0x2a0 fs/inode.c:1143 Modules linked in: CPU: 0 UID: 0 PID: 5103 Comm: syz.0.0 Not tainted 6.11.0-rc3-syzkaller-00156-gd7a5aa4b3c00 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:discard_new_inode+0x217/0x2a0 fs/inode.c:1143 Code: 00 e8 ad d7 59 ff 4c 89 f7 e8 e5 98 ad 09 4c 89 e7 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d e9 9f 00 00 00 e8 ba 6e 80 ff 90 <0f> 0b 90 42 80 3c 2b 00 75 ae eb b4 44 89 e1 80 e1 07 fe c1 38 c1 RSP: 0018:ffffc90002ecf1e0 EFLAGS: 00010293 RAX: ffffffff82131c36 RBX: 1ffff110074b21f2 RCX: ffff88801bfaa440 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff82131bdd R09: fffff520005d9e2c R10: dffffc0000000000 R11: fffff520005d9e2c R12: ffff88803a590ec0 R13: dffffc0000000000 R14: ffff88803a590f40 R15: ffff88803a590f90 FS: 00007f500b58a6c0(0000) GS:ffff888020800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f500b568f98 CR3: 000000001be06000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_inode_insert+0x35b/0x3d0 fs/bcachefs/fs.c:203 bch2_lookup_trans fs/bcachefs/fs.c:465 [inline] bch2_lookup+0x1014/0x16c0 fs/bcachefs/fs.c:483 lookup_open fs/namei.c:3556 [inline] open_last_lookups fs/namei.c:3647 [inline] path_openat+0x11cc/0x3470 fs/namei.c:3883 do_filp_open+0x235/0x490 fs/namei.c:3913 do_sys_openat2+0x13e/0x1d0 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1442 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f500a7799b9 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:00007f500b58a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f500a915f80 RCX: 00007f500a7799b9 RDX: 0000000000000000 RSI: 0000000020004280 RDI: ffffffffffffff9c RBP: 00007f500b58a090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007f500a915f80 R15: 00007fff5e841a88