Remounting filesystem read-only NILFS error (device loop0): nilfs_check_page: bad entry in directory #2: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5234 at fs/nilfs2/dat.c:186 nilfs_dat_commit_end+0x49a/0x5f0 fs/nilfs2/dat.c:186 Modules linked in: CPU: 1 PID: 5234 Comm: syz-executor141 Not tainted 6.1.0-rc3-next-20221104-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:nilfs_dat_commit_end+0x49a/0x5f0 fs/nilfs2/dat.c:186 Code: 41 5f e9 99 ad 56 fe e8 94 ad 56 fe 48 89 ee 4c 89 e7 e8 09 f0 ff ff eb db e8 82 ad 56 fe e8 dd 54 da fd eb b4 e8 76 ad 56 fe <0f> 0b 4d 89 ef e9 35 fd ff ff e8 67 ad 56 fe e8 c2 54 da fd e9 c6 RSP: 0018:ffffc90003c2f570 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888023a77a80 RCX: 0000000000000000 RDX: ffff88801dd99d40 RSI: ffffffff8326229a RDI: 0000000000000006 RBP: ffffc90003c2f618 R08: 0000000000000006 R09: 00000026ae000002 R10: 0000000000000003 R11: 0000000000000000 R12: ffff888073098158 R13: 0000000000000003 R14: ffffc90003c2f630 R15: 00000026ae000002 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055cb6b56fd28 CR3: 000000007a756000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nilfs_dat_commit_update+0x26/0x40 fs/nilfs2/dat.c:236 nilfs_direct_propagate fs/nilfs2/direct.c:277 [inline] nilfs_direct_propagate+0x244/0x320 fs/nilfs2/direct.c:256 nilfs_bmap_propagate+0x73/0x170 fs/nilfs2/bmap.c:337 nilfs_collect_file_data+0x45/0xd0 fs/nilfs2/segment.c:568 nilfs_segctor_apply_buffers+0x14a/0x470 fs/nilfs2/segment.c:1018 nilfs_segctor_scan_file+0x3f4/0x6f0 fs/nilfs2/segment.c:1067 nilfs_segctor_collect_blocks fs/nilfs2/segment.c:1197 [inline] nilfs_segctor_collect fs/nilfs2/segment.c:1503 [inline] nilfs_segctor_do_construct+0x12fc/0x6af0 fs/nilfs2/segment.c:2045 nilfs_segctor_construct+0x8e3/0xb30 fs/nilfs2/segment.c:2379 nilfs_segctor_write_out fs/nilfs2/segment.c:2701 [inline] nilfs_segctor_destroy fs/nilfs2/segment.c:2734 [inline] nilfs_detach_log_writer+0x3bb/0x9f0 fs/nilfs2/segment.c:2813 nilfs_put_super+0x3f/0x1a0 fs/nilfs2/super.c:468 generic_shutdown_super+0x154/0x410 fs/super.c:492 kill_block_super+0x97/0xf0 fs/super.c:1428 deactivate_locked_super+0x94/0x160 fs/super.c:332 deactivate_super+0xad/0xd0 fs/super.c:363 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291 task_work_run+0x16b/0x270 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xaa0/0x28c0 kernel/exit.c:820 do_group_exit+0xd0/0x2a0 kernel/exit.c:950 __do_sys_exit_group kernel/exit.c:961 [inline] __se_sys_exit_group kernel/exit.c:959 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:959 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:0x7fef1ebcbb49 Code: Unable to access opcode bytes at 0x7fef1ebcbb1f. RSP: 002b:00007ffc49fde988 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007fef1ec43330 RCX: 00007fef1ebcbb49 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 00007fef1ec3de40 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fef1ec43330 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001