================================================================== BUG: KASAN: use-after-free in ext4_htree_fill_tree+0x1316/0x13e0 fs/ext4/namei.c:1221 Read of size 1 at addr ffff88811d7bac67 by task syz-executor255/293 CPU: 0 PID: 293 Comm: syz-executor255 Not tainted 5.10.233-syzkaller-00881-gfbe98d68b6b3 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118 print_address_description+0x81/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x179/0x1c0 mm/kasan/report.c:452 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 ext4_htree_fill_tree+0x1316/0x13e0 fs/ext4/namei.c:1221 ext4_dx_readdir fs/ext4/dir.c:598 [inline] ext4_readdir+0x2dde/0x37c0 fs/ext4/dir.c:142 iterate_dir+0x265/0x580 __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:0x7fec584551f3 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 42 47 fb 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 b8 ff ff ff f7 d8 RSP: 002b:00007fff70bba7e8 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 000055557543b730 RCX: 00007fec584551f3 RDX: 0000000000008000 RSI: 000055557543b730 RDI: 0000000000000004 RBP: 000055557543b704 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000293 R12: ffffffffffffffb8 R13: 0000000000000010 R14: 000055557543b700 R15: 00007fff70bbca60 The buggy address belongs to the page: page:ffffea000475ee80 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11d7ba flags: 0x4000000000000000() raw: 4000000000000000 ffffea000475eec8 ffffea000475ee48 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff88811d7bab00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811d7bab80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88811d7bac00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88811d7bac80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811d7bad00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================