netlink: 8 bytes leftover after parsing attributes in process `syz.0.0'. 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: 5315 Comm: syz.0.0 Not tainted 6.13.0-rc5-syzkaller-00163-gab75170520d4 #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 89 10 d0 fd e9 02 f2 ff ff e8 2f ee 92 07 e8 aa a8 69 fd 90 <0f> 0b e8 a2 a8 69 fd 90 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f RSP: 0018:ffffc9000d2a74e0 EFLAGS: 00010293 RAX: ffffffff8435db76 RBX: 0000000000001002 RCX: ffff88801ab30000 RDX: 0000000000000000 RSI: 0000000000001002 RDI: 0000000000001003 RBP: ffffc9000d2a7a90 R08: ffffffff8435ce5d R09: 1ffff110086c6837 R10: dffffc0000000000 R11: ffffed10086c6838 R12: dffffc0000000000 R13: ffff8880533a0000 R14: 0000000000001003 R15: 0000000000000000 FS: 00007f17fb8016c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005634768dd2b8 CR3: 00000000401c8000 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:0x7f17fa985d29 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:00007f17fb801038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007f17fab75fa0 RCX: 00007f17fa985d29 RDX: ffffffffffffff9c RSI: 0000000020000440 RDI: ffffffffffffff9c RBP: 00007f17faa01b08 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f17fab75fa0 R15: 00007ffe4a69be68 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 89 10 d0 fd e9 02 f2 ff ff e8 2f ee 92 07 e8 aa a8 69 fd 90 <0f> 0b e8 a2 a8 69 fd 90 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f RSP: 0018:ffffc9000d2a74e0 EFLAGS: 00010293 RAX: ffffffff8435db76 RBX: 0000000000001002 RCX: ffff88801ab30000 RDX: 0000000000000000 RSI: 0000000000001002 RDI: 0000000000001003 RBP: ffffc9000d2a7a90 R08: ffffffff8435ce5d R09: 1ffff110086c6837 R10: dffffc0000000000 R11: ffffed10086c6838 R12: dffffc0000000000 R13: ffff8880533a0000 R14: 0000000000001003 R15: 0000000000000000 FS: 00007f17fb8016c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005634768dd2b8 CR3: 00000000401c8000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400