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: 3603 at fs/nilfs2/dat.c:151 nilfs_dat_prepare_end+0x215/0x320 fs/nilfs2/dat.c:151 Modules linked in: CPU: 0 PID: 3603 Comm: syz-executor357 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:nilfs_dat_prepare_end+0x215/0x320 fs/nilfs2/dat.c:151 Code: 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e c3 e8 c3 d2 58 fe 44 89 e6 bf fe ff ff ff e8 76 cf 58 fe 41 83 fc fe 75 d3 e8 ab d2 58 fe <0f> 0b eb ca e8 a2 d2 58 fe 48 89 de 4c 89 ef e8 27 a2 03 00 31 ff RSP: 0018:ffffc9000400f918 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffc9000400f980 RCX: 0000000000000000 RDX: ffff888025b19d80 RSI: ffffffff83227795 RDI: 0000000000000005 RBP: ffffc9000400f998 R08: 0000000000000005 R09: 00000000fffffffe R10: 00000000fffffffe R11: 000000000008c07d R12: 00000000fffffffe R13: ffff888073f90158 R14: ffff888073f90158 R15: ffff888073ea0770 FS: 00005555559c6300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1677df6260 CR3: 000000002711e000 CR4: 0000000000350ee0 Call Trace: nilfs_bmap_prepare_end_ptr fs/nilfs2/bmap.h:211 [inline] nilfs_direct_delete+0x20c/0x2d0 fs/nilfs2/direct.c:155 nilfs_bmap_do_delete+0x225/0x2e0 fs/nilfs2/bmap.c:176 nilfs_bmap_do_truncate fs/nilfs2/bmap.c:264 [inline] nilfs_bmap_truncate+0x109/0x300 fs/nilfs2/bmap.c:297 nilfs_truncate_bmap+0x14a/0x360 fs/nilfs2/inode.c:829 nilfs_evict_inode+0x14d/0x440 fs/nilfs2/inode.c:916 evict+0x2ed/0x6b0 fs/inode.c:664 iput_final fs/inode.c:1747 [inline] iput.part.0+0x55d/0x810 fs/inode.c:1773 iput+0x58/0x70 fs/inode.c:1763 d_delete_notify include/linux/fsnotify.h:261 [inline] vfs_rmdir.part.0+0x496/0x5a0 fs/namei.c:4111 vfs_rmdir fs/namei.c:4083 [inline] do_rmdir+0x3a6/0x430 fs/namei.c:4159 __do_sys_rmdir fs/namei.c:4178 [inline] __se_sys_rmdir fs/namei.c:4176 [inline] __x64_sys_rmdir+0xc6/0x110 fs/namei.c:4176 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f12b580f269 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:00007fff4e3ba6e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000054 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f12b580f269 RDX: 00007f12b57cd763 RSI: 0000000000000000 RDI: 0000000020000780 RBP: 00007f12b57cea30 R08: 00005555559c62c0 R09: 0000000000000000 R10: 00007fff4e3ba5b0 R11: 0000000000000246 R12: 00007f12b57ceac0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000