bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, fixing bcachefs (loop0): inode points to missing dirent inum: 9896141520898:4294967295 mode=100755 flags=sync,immutable,nodump,noatime,i_size_dirty,i_sectors_dirty,unlinked(153000fb) journal_seq=4 hash_seed=d483206f1ed95abf hash_type=siphash bi_size=100 bi_sectors=8 bi_version=0 bi_atime=2780562352 bi_ctime=2780562352 bi_mtime=2780562352 bi_otime=2780562352 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=4096 bi_dir_offset=9097378837824765866 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0 bi_casefold=0, fixing bcachefs (loop0): inode 9896141520898:4294967295 unlinked, but not on deleted list, fixing done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... bcachefs (loop0): filesystem marked as clean but have deleted inode 9896141520898:4294967295, fixing bcachefs (loop0): deleting unlinked inode 9896141520898:4294967295 ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_trans_commit.c:348! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5361 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:btree_insert_entry_checks fs/bcachefs/btree_trans_commit.c:343 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:725 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:854 [inline] RIP: 0010:__bch2_trans_commit+0x86e5/0x8870 fs/bcachefs/btree_trans_commit.c:1085 Code: 90 fd eb 0c e8 ac a6 90 fd eb 05 e8 a5 a6 90 fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 48 e9 e1 af ff ff e8 8c a6 90 fd 90 <0f> 0b e8 84 a6 90 fd 90 0f 0b e8 7c a6 90 fd 90 0f 0b e8 74 a6 90 RSP: 0018:ffffc9000d34ea80 EFLAGS: 00010293 RAX: ffffffff842f14b4 RBX: ffffffff842ed685 RCX: ffff888000a88000 RDX: 0000000000000000 RSI: ffffffff8dba9fd7 RDI: ffff888000a88000 RBP: ffffc9000d34ed70 R08: 0000000000000000 R09: ffffffff842ed685 R10: dffffc0000000000 R11: ffffed100a5a9309 R12: ffff8880522dc020 R13: dffffc0000000000 R14: ffff8880522de4d8 R15: 0000000000000001 FS: 00007f7662c3c6c0(0000) GS:ffff88808d210000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc2b8ef250 CR3: 0000000011413000 CR4: 0000000000352ef0 Call Trace: bch2_trans_commit fs/bcachefs/btree_update.h:241 [inline] __bch2_inode_rm_snapshot+0x660/0x810 fs/bcachefs/inode.c:1354 bch2_inode_rm_snapshot fs/bcachefs/inode.c:1399 [inline] bch2_delete_dead_inodes+0x476/0x880 fs/bcachefs/inode.c:1538 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:484 [inline] __bch2_run_recovery_passes+0x3ba/0x1060 fs/bcachefs/recovery_passes.c:539 bch2_run_recovery_passes+0x184/0x210 fs/bcachefs/recovery_passes.c:610 bch2_fs_recovery+0x2690/0x3a50 fs/bcachefs/recovery.c:1016 bch2_fs_start+0xaaf/0xda0 fs/bcachefs/super.c:1213 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:0x7f7661d9038a 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:00007f7662c3be68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f7662c3bef0 RCX: 00007f7661d9038a RDX: 0000200000000040 RSI: 0000200000000000 RDI: 00007f7662c3beb0 RBP: 0000200000000040 R08: 00007f7662c3bef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000000 R13: 00007f7662c3beb0 R14: 0000000000005955 R15: 0000200000000080 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btree_insert_entry_checks fs/bcachefs/btree_trans_commit.c:343 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:725 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:854 [inline] RIP: 0010:__bch2_trans_commit+0x86e5/0x8870 fs/bcachefs/btree_trans_commit.c:1085 Code: 90 fd eb 0c e8 ac a6 90 fd eb 05 e8 a5 a6 90 fd 49 bd 00 00 00 00 00 fc ff df 4c 8b 64 24 48 e9 e1 af ff ff e8 8c a6 90 fd 90 <0f> 0b e8 84 a6 90 fd 90 0f 0b e8 7c a6 90 fd 90 0f 0b e8 74 a6 90 RSP: 0018:ffffc9000d34ea80 EFLAGS: 00010293 RAX: ffffffff842f14b4 RBX: ffffffff842ed685 RCX: ffff888000a88000 RDX: 0000000000000000 RSI: ffffffff8dba9fd7 RDI: ffff888000a88000 RBP: ffffc9000d34ed70 R08: 0000000000000000 R09: ffffffff842ed685 R10: dffffc0000000000 R11: ffffed100a5a9309 R12: ffff8880522dc020 R13: dffffc0000000000 R14: ffff8880522de4d8 R15: 0000000000000001 FS: 00007f7662c3c6c0(0000) GS:ffff88808d210000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc2b8ef250 CR3: 0000000011413000 CR4: 0000000000352ef0