done bcachefs (loop0): going read-write bcachefs (loop0): journal_replay... done bcachefs (loop0): check_lrus... bcachefs (loop0): incorrect lru entry: lru fragmentation time 134217728 u64s 5 type set 18446462598867058688:34:0 len 0 ver 0 for u64s 13 type alloc_v4 0:34:0 len 0 ver 0: gen 0 oldest_gen 0 data_type need_discard journal_seq_nonempty 5 journal_seq_empty 134217728 need_discard 1 need_inc_gen 1 dirty_sectors 0 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 1 io_time[WRITE] 512 fragmentation 0 bp_start 8 , fixing done bcachefs (loop0): check_backpointers_to_extents... done bcachefs (loop0): check_extents_to_backpointers... bcachefs (loop0): scanning for missing backpointers in 3/128 buckets done bcachefs (loop0): reconstruct_snapshots... bcachefs (loop0): snapshot node 4294967295 from tree 4294967295 missing, recreating done bcachefs (loop0): check_inodes... done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... 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... bcachefs (loop0): scanning for missing backpointers in 1/128 buckets done bcachefs (loop0): reconstruct_snapshots... done bcachefs (loop0): check_inodes... done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): done starting filesystem bcachefs (loop0): inode 536870912 truncated to 0 but i_blocks 8 (ondisk 8) bcachefs (loop0): dirent to missing inode: u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir ------------[ cut here ]------------ kernel BUG at fs/bcachefs/fs.c:1019! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5312 Comm: syz.0.0 Not tainted 6.15.0-rc4-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_rename2+0x1325/0x1340 fs/bcachefs/fs.c:1018 Code: 03 38 c1 0f 8c 43 fa ff ff 4c 89 ff 48 89 f3 e8 71 79 ef fd 48 89 de e9 30 fa ff ff e8 94 84 8d fd 90 0f 0b e8 8c 84 8d fd 90 <0f> 0b e8 84 84 8d fd e9 93 f9 ff ff 66 66 66 66 66 66 2e 0f 1f 84 RSP: 0018:ffffc9000d46f680 EFLAGS: 00010283 RAX: ffffffff84323a44 RBX: 0000000000001001 RCX: 0000000000100000 RDX: ffffc9000de5a000 RSI: 00000000000032fc RDI: 00000000000032fd RBP: ffffc9000d46fb70 R08: ffff888051c9c1d7 R09: 1ffff1100a39383a R10: dffffc0000000000 R11: ffffed100a39383b R12: ffff888051bf0798 R13: dffffc0000000000 R14: 0000000000001002 R15: ffff888051bf0000 FS: 00007fe5d3a076c0(0000) GS:ffff88808d6cc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe5c6bff000 CR3: 000000003fa64000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vfs_rename+0xb99/0xec0 fs/namei.c:5121 do_renameat2+0x878/0xc50 fs/namei.c:5270 __do_sys_renameat2 fs/namei.c:5304 [inline] __se_sys_renameat2 fs/namei.c:5301 [inline] __x64_sys_renameat2+0xce/0xe0 fs/namei.c:5301 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe5d2b8e969 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:00007fe5d3a07038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007fe5d2db5fa0 RCX: 00007fe5d2b8e969 RDX: 0000000000000008 RSI: 0000200000000180 RDI: 0000000000000008 RBP: 00007fe5d2c10ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 00002000000001c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe5d2db5fa0 R15: 00007ffe09a55a18 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_rename2+0x1325/0x1340 fs/bcachefs/fs.c:1018 Code: 03 38 c1 0f 8c 43 fa ff ff 4c 89 ff 48 89 f3 e8 71 79 ef fd 48 89 de e9 30 fa ff ff e8 94 84 8d fd 90 0f 0b e8 8c 84 8d fd 90 <0f> 0b e8 84 84 8d fd e9 93 f9 ff ff 66 66 66 66 66 66 2e 0f 1f 84 RSP: 0018:ffffc9000d46f680 EFLAGS: 00010283 RAX: ffffffff84323a44 RBX: 0000000000001001 RCX: 0000000000100000 RDX: ffffc9000de5a000 RSI: 00000000000032fc RDI: 00000000000032fd RBP: ffffc9000d46fb70 R08: ffff888051c9c1d7 R09: 1ffff1100a39383a R10: dffffc0000000000 R11: ffffed100a39383b R12: ffff888051bf0798 R13: dffffc0000000000 R14: 0000000000001002 R15: ffff888051bf0000 FS: 00007fe5d3a076c0(0000) GS:ffff88808d6cc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe5c76e3000 CR3: 000000003fa64000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400