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:935! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5317 Comm: syz.0.0 Not tainted 6.13.0-rc6-syzkaller-00046-g0b7958fa05d5 #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:bch2_rename2+0x2117/0x2130 fs/bcachefs/fs.c:935 Code: ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 0f f2 ff ff 4c 89 ff e8 69 02 d0 fd e9 02 f2 ff ff e8 9f f4 92 07 e8 da 9e 69 fd 90 <0f> 0b e8 d2 9e 69 fd 90 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f RSP: 0018:ffffc9000d3b74e0 EFLAGS: 00010293 RAX: ffffffff8435e546 RBX: 0000000000001002 RCX: ffff888000ac8000 RDX: 0000000000000000 RSI: 0000000000001002 RDI: 0000000000001003 RBP: ffffc9000d3b7a90 R08: ffffffff8435d82d R09: 1ffff1100aa95037 R10: dffffc0000000000 R11: ffffed100aa95038 R12: dffffc0000000000 R13: ffff8880452e8000 R14: 0000000000001003 R15: 0000000000000000 FS: 00007f30d8cd66c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000036740000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vfs_rename+0xbdb/0xf00 fs/namei.c:5067 do_renameat2+0xd94/0x13f0 fs/namei.c:5224 __do_sys_renameat2 fs/namei.c:5258 [inline] __se_sys_renameat2 fs/namei.c:5255 [inline] __x64_sys_renameat2+0xce/0xe0 fs/namei.c:5255 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:0x7f30d7f85d29 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:00007f30d8cd6038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007f30d8176080 RCX: 00007f30d7f85d29 RDX: ffffffffffffff9c RSI: 0000000020000440 RDI: ffffffffffffff9c RBP: 00007f30d8001b08 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f30d8176080 R15: 00007fffda8f66e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_rename2+0x2117/0x2130 fs/bcachefs/fs.c:935 Code: ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 0f f2 ff ff 4c 89 ff e8 69 02 d0 fd e9 02 f2 ff ff e8 9f f4 92 07 e8 da 9e 69 fd 90 <0f> 0b e8 d2 9e 69 fd 90 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f RSP: 0018:ffffc9000d3b74e0 EFLAGS: 00010293 RAX: ffffffff8435e546 RBX: 0000000000001002 RCX: ffff888000ac8000 RDX: 0000000000000000 RSI: 0000000000001002 RDI: 0000000000001003 RBP: ffffc9000d3b7a90 R08: ffffffff8435d82d R09: 1ffff1100aa95037 R10: dffffc0000000000 R11: ffffed100aa95038 R12: dffffc0000000000 R13: ffff8880452e8000 R14: 0000000000001003 R15: 0000000000000000 FS: 00007f30d8cd66c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f30cbfff000 CR3: 0000000036740000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400