EXT4-fs warning (device loop1): dx_probe:893: inode #2: comm syz-executor.1: dx entry: limit 0 != root limit 124 EXT4-fs warning (device loop1): dx_probe:966: inode #2: comm syz-executor.1: Corrupt directory, running e2fsck is recommended ================================================================== BUG: KASAN: use-after-free in __ext4_check_dir_entry+0x738/0x8e0 fs/ext4/dir.c:85 Read of size 2 at addr ffff888074a8f003 by task syz-executor.1/5504 CPU: 0 PID: 5504 Comm: syz-executor.1 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 __ext4_check_dir_entry+0x738/0x8e0 fs/ext4/dir.c:85 ext4_readdir+0x1252/0x3b40 fs/ext4/dir.c:261 iterate_dir+0x218/0x560 fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xf2/0x270 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f7af72bbcb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 d0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7af664f0b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f7af7414fa0 RCX: 00007f7af72bbcb9 RDX: 0000000000000010 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007f7af732049d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f7af7414fa0 R15: 00007fffb0a42e48 The buggy address belongs to the page: page:ffffea0001d2a3c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x74a8f flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001dd7fc8 ffffea00008f23c8 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 5012, ts 94727673878, free_ts 95086110214 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1bbd/0x1ca0 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 vm_area_alloc_pages mm/vmalloc.c:2876 [inline] __vmalloc_area_node mm/vmalloc.c:2932 [inline] __vmalloc_node_range+0x4b2/0x8b0 mm/vmalloc.c:3037 vmalloc_user+0x70/0x80 mm/vmalloc.c:3173 kcov_mmap+0x27/0x120 kernel/kcov.c:474 call_mmap include/linux/fs.h:2178 [inline] mmap_file+0x5d/0xb0 mm/util.c:1092 __mmap_region mm/mmap.c:1796 [inline] mmap_region+0xf88/0x1650 mm/mmap.c:2933 do_mmap+0x819/0xe90 mm/mmap.c:1586 vm_mmap_pgoff+0x1c1/0x2d0 mm/util.c:551 ksys_mmap_pgoff+0x54b/0x790 mm/mmap.c:1635 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396 __vunmap+0x8b9/0xa50 mm/vmalloc.c:2628 kcov_put kernel/kcov.c:417 [inline] kcov_close+0x27/0x50 kernel/kcov.c:519 __fput+0x234/0x930 fs/file_table.c:311 task_work_run+0x125/0x1a0 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x626/0x20c0 kernel/exit.c:884 do_group_exit+0x12e/0x300 kernel/exit.c:998 get_signal+0x6d6/0x12d0 kernel/signal.c:2900 arch_do_signal_or_restart+0xe7/0x12c0 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0x9e/0x130 kernel/entry/common.c:178 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff888074a8ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888074a8ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888074a8f000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888074a8f080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888074a8f100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================