================================================================== BUG: KASAN: use-after-free in __ext4_check_dir_entry+0x2de/0x320 fs/ext4/dir.c:69 Read of size 2 at addr ffff8801b2cc9002 by task syz-executor7/6580 CPU: 0 PID: 6580 Comm: syz-executor7 Not tainted 4.16.0-rc7+ #9 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x24d lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report+0x23c/0x360 mm/kasan/report.c:412 __asan_report_load2_noabort+0x14/0x20 mm/kasan/report.c:431 __ext4_check_dir_entry+0x2de/0x320 fs/ext4/dir.c:69 ext4_readdir+0xd00/0x3600 fs/ext4/dir.c:237 EXT4-fs (loop6): VFS: Can't find ext4 filesystem iterate_dir+0x1ca/0x530 fs/readdir.c:51 SYSC_getdents64 fs/readdir.c:314 [inline] SyS_getdents64+0x221/0x420 fs/readdir.c:295 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x454e79 RSP: 002b:00007f5acd3c6c68 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f5acd3c76d4 RCX: 0000000000454e79 RDX: 00000000200015fc RSI: 0000000020001540 RDI: 0000000000000013 RBP: 000000000072bf58 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000000a9 R14: 00000000006f3078 R15: 0000000000000001 The buggy address belongs to the page: page:ffffea0006cb3240 count:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x2fffc0000000000() raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff raw: ffffea0007227660 ffffea0006cac6a0 0000000000000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801b2cc8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801b2cc8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801b2cc9000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8801b2cc9080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8801b2cc9100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================