bcachefs (loop0): key in missing inode: u64s 7 type dirent 4098:4600437421902197670:U32_MAX len 0 ver 0: file1 -> 4100 type lnk, fixing done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): set_fs_needs_rebalance... done bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean bcachefs (loop0): check_lrus... done bcachefs (loop0): check_backpointers_to_extents... done bcachefs (loop0): check_extents_to_backpointers... done bcachefs (loop0): check_snapshots... done bcachefs (loop0): check_subvols... done bcachefs (loop0): check_inodes... done bcachefs (loop0): check_dirents... bcachefs (loop0): key in missing inode: u64s 8 type dirent 4096:1859603997870691834:U32_MAX len 0 ver 0: lost+found -> 4097 type dir, fixing bcachefs (loop0): key in missing inode: u64s 7 type dirent 4096:3784119180373593407:U32_MAX len 0 ver 0: file3 -> 1073741825 type reg, fixing bcachefs (loop0): key in missing inode: u64s 7 type dirent 4096:5682031293254759865:U32_MAX len 0 ver 0: file0 -> 4098 type dir, fixing bcachefs (loop0): key in missing inode: u64s 7 type dirent 4096:6229884513039707068:U32_MAX len 0 ver 0: file2 -> 1073741825 type reg, fixing bcachefs (loop0): key in missing inode: u64s 7 type dirent 4096:7012347908543992434:U32_MAX len 0 ver 0: file1— -> 1073741824 type reg, fixing bcachefs (loop0): key in missing inode: u64s 8 type dirent 4096:8117119959317756843:U32_MAX len 0 ver 0: file.cold -> 1073741826 type reg, fixing bcachefs (loop0): key in missing inode: u64s 7 type dirent 4098:2566587684781802428:U32_MAX len 0 ver 0: file0 -> 4099 type reg, fixing bcachefs (loop0): key in missing inode: u64s 7 type dirent 4098:4600437421902197670:U32_MAX len 0 ver 0: file1 -> 4100 type lnk, fixing done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): set_fs_needs_rebalance... done bcachefs (loop0): Second fsck run was not clean bcachefs (loop0): reading quotas bcachefs (loop0): quotas done bcachefs (loop0): done starting filesystem bcachefs (loop0): missing subvolume 1 bcachefs (loop0): bch2_fs_get_tree(): error mounting: error getting root inode ENOENT_bkey_type_mismatch bcachefs (loop0): shutting down bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 29 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 29 bcachefs (loop0): clean shutdown complete, journal seq 30 bcachefs (loop0): done going read-only, filesystem not clean ------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: CPU: 0 PID: 5323 at kernel/locking/lockdep.c:5205 __lock_acquire+0xc6e/0xd80 kernel/locking/lockdep.c:5205 Modules linked in: CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Not tainted 6.15.0-rc2-syzkaller-00400-g3088d26962e8 #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:__lock_acquire+0xc6e/0xd80 kernel/locking/lockdep.c:5205 Code: ff ff 90 e8 c4 0c 62 03 85 c0 74 22 83 3d 6d 9c c1 0e 00 75 19 90 48 c7 c7 47 50 63 8e 48 c7 c6 9d 97 64 8e e8 23 9f e3 ff 90 <0f> 0b 90 90 90 45 31 ed e9 9c fe ff ff 90 0f 0b 90 e9 3f fe ff ff RSP: 0018:ffffc9000d4a7660 EFLAGS: 00010046 RAX: e0836ad62054cd00 RBX: ffff888000cc8000 RCX: 0000000000100000 RDX: ffffc9000e863000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: 00000000ffffffff R08: ffffffff818218d2 R09: 1ffff11003f847d2 R10: dffffc0000000000 R11: ffffed1003f847d3 R12: ffff888000cc8b38 R13: 0000000000000000 R14: ffff888000cc8b18 R15: 0000000000000001 FS: 00007f7d0027c6c0(0000) GS:ffff88808c59a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa837a2f580 CR3: 0000000044138000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x116/0x2f0 kernel/locking/lockdep.c:5866 down_write+0x9c/0x220 kernel/locking/rwsem.c:1577 inode_lock include/linux/fs.h:867 [inline] simple_recursive_removal+0x9a/0x8f0 fs/libfs.c:615 debugfs_remove+0x49/0x70 fs/debugfs/inode.c:805 __bch2_fs_stop+0x292/0x5b0 fs/bcachefs/super.c:647 bch2_fs_get_tree+0x11ac/0x18f0 fs/bcachefs/fs.c:2294 vfs_get_tree+0x90/0x2b0 fs/super.c:1759 do_new_mount+0x2cf/0xb70 fs/namespace.c:3881 do_mount fs/namespace.c:4221 [inline] __do_sys_mount fs/namespace.c:4432 [inline] __se_sys_mount+0x38c/0x400 fs/namespace.c:4409 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7cff38f90a 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:00007f7d0027be68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f7d0027bef0 RCX: 00007f7cff38f90a RDX: 0000200000000000 RSI: 0000200000000140 RDI: 00007f7d0027beb0 RBP: 0000200000000000 R08: 00007f7d0027bef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000140 R13: 00007f7d0027beb0 R14: 000000000000f60f R15: 0000200000000180