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: 1 PID: 5303 at fs/nilfs2/dat.c:151 nilfs_dat_prepare_end+0x219/0x320 fs/nilfs2/dat.c:151 Modules linked in: CPU: 0 PID: 5303 Comm: syz-executor686 Not tainted 6.1.0-rc5-next-20221116-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:nilfs_dat_prepare_end+0x219/0x320 fs/nilfs2/dat.c:151 Code: 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e c3 e8 1f f8 52 fe 44 89 e6 bf fe ff ff ff e8 c2 f4 52 fe 41 83 fc fe 75 d3 e8 07 f8 52 fe <0f> 0b eb ca e8 fe f7 52 fe 48 89 de 4c 89 ef e8 93 ab 03 00 31 ff RSP: 0018:ffffc90003d2f910 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffc90003d2f978 RCX: 0000000000000000 RDX: ffff8880185fba80 RSI: ffffffff832dacd9 RDI: 0000000000000005 RBP: ffffc90003d2f990 R08: 0000000000000005 R09: 00000000fffffffe R10: 00000000fffffffe R11: 0000000000000000 R12: 00000000fffffffe R13: ffff888073088158 R14: ffff888073088158 R15: ffff888073160108 FS: 0000555556d0b300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b5be2573c8 CR3: 0000000029e86000 CR4: 00000000003506e0 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+0x210/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+0x10d/0x300 fs/nilfs2/bmap.c:297 nilfs_truncate_bmap+0x14a/0x360 fs/nilfs2/inode.c:846 nilfs_evict_inode+0x151/0x440 fs/nilfs2/inode.c:933 evict+0x2ed/0x6b0 fs/inode.c:664 iput_final fs/inode.c:1747 [inline] iput.part.0+0x59b/0x880 fs/inode.c:1773 iput+0x5c/0x80 fs/inode.c:1763 d_delete_notify include/linux/fsnotify.h:261 [inline] vfs_rmdir.part.0+0x496/0x5a0 fs/namei.c:4133 vfs_rmdir fs/namei.c:4105 [inline] do_rmdir+0x395/0x410 fs/namei.c:4181 __do_sys_rmdir fs/namei.c:4200 [inline] __se_sys_rmdir fs/namei.c:4198 [inline] __x64_sys_rmdir+0xca/0x110 fs/namei.c:4198 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe041673269 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:00007ffe00d0d538 EFLAGS: 00000246 ORIG_RAX: 0000000000000054 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fe041673269 RDX: 00007fe041631763 RSI: 0000000000000000 RDI: 0000000020000780 RBP: 00007fe041632a30 R08: 0000555556d0b2c0 R09: 0000000000000000 R10: 00007ffe00d0d400 R11: 0000000000000246 R12: 00007fe041632ac0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000