EXT4-fs warning (device loop0): dx_probe:754: inode #2: comm syz.0.19: Unrecognised inode hash code 4 EXT4-fs warning (device loop0): dx_probe:865: inode #2: comm syz.0.19: Corrupt directory, running e2fsck is recommended ================================================================== BUG: KASAN: use-after-free in __ext4_check_dir_entry+0x2bc/0x390 fs/ext4/dir.c:69 Read of size 2 at addr ffff8801dd7f0003 by task syz.0.19/3115 CPU: 0 PID: 3115 Comm: syz.0.19 Not tainted 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x10c/0x17a lib/dump_stack.c:113 print_address_description.cold.6+0x9/0x244 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x242/0x305 mm/kasan/report.c:396 __asan_report_load2_noabort+0x14/0x20 mm/kasan/report.c:431 __ext4_check_dir_entry+0x2bc/0x390 fs/ext4/dir.c:69 ext4_readdir+0x62d/0x2be0 fs/ext4/dir.c:235 iterate_dir+0x3ad/0x5f0 fs/readdir.c:51 ksys_getdents64+0x102/0x1d0 fs/readdir.c:314 __do_sys_getdents64 fs/readdir.c:333 [inline] __se_sys_getdents64 fs/readdir.c:330 [inline] __x64_sys_getdents64+0x6e/0xb0 fs/readdir.c:330 do_syscall_64+0xd0/0x340 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f8d47052ff9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8d46ad4038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f8d4720af80 RCX: 00007f8d47052ff9 RDX: 0000000000000010 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f8d470c5296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8d4720af80 R15: 00007fff9ab68be8 The buggy address belongs to the page: page:ffffea000775fc00 count:0 mapcount:0 mapping:0000000000000000 index:0x1 flags: 0x200000000000000() raw: 0200000000000000 ffffea000775fa48 ffffea000775ff88 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not active (free page?) Memory state around the buggy address: ffff8801dd7eff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801dd7eff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801dd7f0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8801dd7f0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8801dd7f0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================