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 ffff888073c6a003 by task syz-executor.1/5516 CPU: 1 PID: 5516 Comm: syz-executor.1 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x168/0x230 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+0x11df/0x3a60 fs/ext4/dir.c:261 iterate_dir+0x218/0x560 fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xe5/0x260 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:0x7fd80c307ee9 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:00007fd80b6890c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007fd80c43efa0 RCX: 00007fd80c307ee9 RDX: 0000000000000010 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007fd80c35447f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd80c43efa0 R15: 00007ffd1dafcf08 The buggy address belongs to the page: page:ffffea0001cf1a80 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x73c6a flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00007adb88 ffffea0001e7d9c8 0000000000000000 raw: 0000000000000000 00000000000f0000 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 5189, ts 95053125601, free_ts 104389068156 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3233 vm_area_dup+0x1e/0xb0 kernel/fork.c:358 __split_vma+0xb1/0x410 mm/mmap.c:2726 __do_munmap+0x3eb/0xdc0 mm/mmap.c:2861 do_munmap mm/mmap.c:2906 [inline] munmap_vma_range mm/mmap.c:602 [inline] __mmap_region mm/mmap.c:1753 [inline] mmap_region+0x762/0x15e0 mm/mmap.c:2929 do_mmap+0x77a/0xdf0 mm/mmap.c:1582 vm_mmap_pgoff+0x1b2/0x2b0 mm/util.c:551 ksys_mmap_pgoff+0x542/0x780 mm/mmap.c:1631 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+0x94/0x280 mm/page_alloc.c:3396 free_slab mm/slub.c:2015 [inline] discard_slab mm/slub.c:2021 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2507 put_cpu_partial+0x12d/0x190 mm/slub.c:2587 qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xd0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] kmem_cache_alloc_node+0x12d/0x2d0 mm/slub.c:3256 __alloc_skb+0xf4/0x750 net/core/skbuff.c:415 alloc_skb include/linux/skbuff.h:1162 [inline] mld_newpack+0x12a/0xb90 net/ipv6/mcast.c:1746 add_grhead+0x5a/0x240 net/ipv6/mcast.c:1857 add_grec+0x1341/0x15d0 net/ipv6/mcast.c:1995 mld_send_initial_cr+0xed/0x240 net/ipv6/mcast.c:2242 mld_dad_work+0x41/0x270 net/ipv6/mcast.c:2268 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 Memory state around the buggy address: ffff888073c69f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888073c69f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888073c6a000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888073c6a080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888073c6a100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================