EXT4-fs error (device loop1): ext4_readdir:260: inode #2: block 13: comm syz-executor: path /11/file2: bad entry in directory: rec_len is smaller than minimal - offset=76, inode=196608, rec_len=0, size=1024 fake=0 ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:5246! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 6313 Comm: syz-executor Not tainted 5.10.218-syzkaller-00638-g3feee789f446 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:ext4_do_update_inode fs/ext4/inode.c:5245 [inline] RIP: 0010:ext4_mark_iloc_dirty+0x3e51/0x3e60 fs/ext4/inode.c:5841 Code: 6f ca ff e9 0f f1 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 21 f1 ff ff 48 89 df e8 49 70 ca ff e9 14 f1 ff ff e8 0f dc 8c ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 57 41 RSP: 0018:ffffc900012079a0 EFLAGS: 00010293 RAX: ffffffff81ddce71 RBX: 0000000000000000 RCX: ffff888113783b40 RDX: 0000000000000000 RSI: 0000000000020000 RDI: 0000000000000000 RBP: ffffc90001207ab0 R08: ffffffff81ddaa8d R09: ffffed1024cc1c30 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 0000000000020000 R14: 0000000000000000 R15: ffff88812180f000 FS: 00005555568e2500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556b044a8 CR3: 000000010fd04000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __ext4_mark_inode_dirty+0x4fc/0x7b0 fs/ext4/inode.c:6043 ext4_dirty_inode+0xdd/0x120 fs/ext4/inode.c:6079 __mark_inode_dirty+0xd0/0x9d0 fs/fs-writeback.c:2252 generic_update_time fs/inode.c:1807 [inline] inode_update_time fs/inode.c:1820 [inline] touch_atime+0x2ff/0x4c0 fs/inode.c:1892 file_accessed include/linux/fs.h:2345 [inline] iterate_dir+0x4a1/0x580 fs/readdir.c:70 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0x1c1/0x460 fs/readdir.c:354 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:354 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f6645b2cc73 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 e2 44 f8 ff 66 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 a8 ff ff ff f7 d8 RSP: 002b:00007fff0b1a25a8 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00005555568fd4e0 RCX: 00007f6645b2cc73 RDX: 0000000000008000 RSI: 00005555568fd4e0 RDI: 0000000000000005 RBP: 00005555568fd4b4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000293 R12: ffffffffffffffa8 R13: 0000000000000010 R14: 00005555568fd4b0 R15: 0000000000046531 Modules linked in: ---[ end trace c25cfde4571be570 ]--- RIP: 0010:ext4_do_update_inode fs/ext4/inode.c:5245 [inline] RIP: 0010:ext4_mark_iloc_dirty+0x3e51/0x3e60 fs/ext4/inode.c:5841 Code: 6f ca ff e9 0f f1 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 21 f1 ff ff 48 89 df e8 49 70 ca ff e9 14 f1 ff ff e8 0f dc 8c ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 57 41 RSP: 0018:ffffc900012079a0 EFLAGS: 00010293 RAX: ffffffff81ddce71 RBX: 0000000000000000 RCX: ffff888113783b40 RDX: 0000000000000000 RSI: 0000000000020000 RDI: 0000000000000000 RBP: ffffc90001207ab0 R08: ffffffff81ddaa8d R09: ffffed1024cc1c30 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 0000000000020000 R14: 0000000000000000 R15: ffff88812180f000 FS: 00005555568e2500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556b044a8 CR3: 000000010fd04000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400