EXT4-fs: Ignoring removed bh option EXT4-fs (loop0): mounting ext3 file system using the ext4 subsystem EXT4-fs (loop0): 1 truncate cleaned up EXT4-fs (loop0): mounted filesystem without journal. Quota mode: none. ================================================================== BUG: KASAN: use-after-free in ext4_search_dir+0x148/0x250 fs/ext4/namei.c:1544 Read of size 1 at addr ffff8881239363ed by task syz-executor.0/1400 CPU: 1 PID: 1400 Comm: syz-executor.0 Not tainted 6.1.109-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xf4/0x251 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 ext4_search_dir+0x148/0x250 fs/ext4/namei.c:1544 ext4_find_inline_entry+0x367/0x540 fs/ext4/inline.c:1726 __ext4_find_entry+0x2dc/0x1a10 fs/ext4/namei.c:1617 ext4_lookup_entry fs/ext4/namei.c:1772 [inline] ext4_lookup+0x1ab/0x5f0 fs/ext4/namei.c:1840 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3552 [inline] path_openat+0xdb6/0x2410 fs/namei.c:3782 do_filp_open+0x226/0x430 fs/namei.c:3812 do_sys_openat2+0x10b/0x3f0 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_open fs/open.c:1342 [inline] __se_sys_open fs/open.c:1338 [inline] __x64_sys_open+0x1eb/0x240 fs/open.c:1338 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f537a105b29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5379c880c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f537a224f80 RCX: 00007f537a105b29 RDX: 0000000000000000 RSI: 0000000000141042 RDI: 0000000020000100 RBP: 00007f537a15147a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f537a224f80 R15: 00007ffc8a70d248 The buggy address belongs to the physical page: page:ffffea00048e4d80 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x123936 flags: 0x200000000000000(node=0|zone=2) raw: 0200000000000000 ffffea00048e4dc8 ffffea00048e4d48 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff888123936280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888123936300: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888123936380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888123936400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888123936480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================