NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0 Remounting filesystem read-only ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3612 at fs/nilfs2/dat.c:151 nilfs_dat_prepare_end+0x247/0x2a0 Modules linked in: CPU: 0 PID: 3612 Comm: syz-executor399 Not tainted 6.0.0-syzkaller-09039-ga6afa4199d3d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:nilfs_dat_prepare_end+0x247/0x2a0 fs/nilfs2/dat.c:151 Code: f1 3e fe 89 eb 89 d8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 98 f1 3e fe e8 43 a8 b8 fd e9 5a ff ff ff e8 89 f1 3e fe <0f> 0b bb fe ff ff ff eb d2 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c RSP: 0018:ffffc90003d1f918 EFLAGS: 00010293 RAX: ffffffff8347de67 RBX: 00000000fffffffe RCX: ffff88807d7d8000 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: 00000000fffffffe RBP: 1ffff920007a3f34 R08: ffffffff8347dde0 R09: ffffffff83462b33 R10: 0000000000000002 R11: ffff88807d7d8000 R12: ffffc90003d1f9a0 R13: ffff888074d28158 R14: ffffc90003d1f9b8 R15: dffffc0000000000 FS: 0000555555f99300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055c3069e7a80 CR3: 0000000074004000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nilfs_bmap_prepare_end_ptr fs/nilfs2/bmap.h:211 [inline] nilfs_direct_delete+0x16a/0x300 fs/nilfs2/direct.c:155 nilfs_bmap_do_delete fs/nilfs2/bmap.c:176 [inline] nilfs_bmap_do_truncate fs/nilfs2/bmap.c:264 [inline] nilfs_bmap_truncate+0x2dd/0x520 fs/nilfs2/bmap.c:297 nilfs_truncate_bmap+0x214/0x400 fs/nilfs2/inode.c:829 nilfs_evict_inode+0x155/0x3d0 fs/nilfs2/inode.c:916 evict+0x2a4/0x620 fs/inode.c:664 d_delete_notify include/linux/fsnotify.h:261 [inline] vfs_rmdir+0x37e/0x4b0 fs/namei.c:4111 do_rmdir+0x39d/0x610 fs/namei.c:4159 __do_sys_rmdir fs/namei.c:4178 [inline] __se_sys_rmdir fs/namei.c:4176 [inline] __x64_sys_rmdir+0x45/0x50 fs/namei.c:4176 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1f533a6269 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe676685a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000054 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f1f533a6269 RDX: 00007f1f53364763 RSI: 0000000000000000 RDI: 0000000020000780 RBP: 00007f1f53365a30 R08: 0000555555f992c0 R09: 0000000000000000 R10: 00007ffe67668470 R11: 0000000000000246 R12: 00007f1f53365ac0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000