loop0: lost filesystem error report for type 5 error -117 EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none. EXT4-fs warning (device loop0): dx_probe:801: inode #2: comm syz.0.17: Unrecognised inode hash code 4 EXT4-fs warning (device loop0): dx_probe:934: inode #2: comm syz.0.17: Corrupt directory, running e2fsck is recommended ================================================================== BUG: KASAN: use-after-free in __ext4_check_dir_entry+0x755/0x8e0 fs/ext4/dir.c:86 Read of size 2 at addr ffff88806b394003 by task syz.0.17/6428 CPU: 0 UID: 0 PID: 6428 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 __ext4_check_dir_entry+0x755/0x8e0 fs/ext4/dir.c:86 ext4_readdir+0x14b8/0x41a0 fs/ext4/dir.c:263 iterate_dir+0x399/0x570 fs/readdir.c:108 __do_sys_getdents64 fs/readdir.c:412 [inline] __se_sys_getdents64+0xf1/0x280 fs/readdir.c:397 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe8/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7fe9e9b9c629 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe9eaa84028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007fe9e9e15fa0 RCX: 00007fe9e9b9c629 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007fe9e9c32b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe9e9e16038 R14: 00007fe9e9e15fa0 R15: 00007ffffdddcdd8 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6b394 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f0(buddy) raw: 00fff00000000000 ffffea0001de5a88 ffffea0001abdc88 0000000000000000 raw: 0000000000000000 0000000000000000 00000000f0000000 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 0x500cc2(GFP_HIGHUSER|__GFP_ACCOUNT), pid 6050, tgid 6050 (sshd-session), ts 101580494402, free_ts 101580708937 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x246b/0x2510 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5250 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2485 alloc_frozen_pages_noprof mm/mempolicy.c:2556 [inline] alloc_pages_noprof+0xa8/0x190 mm/mempolicy.c:2576 anon_pipe_get_page fs/pipe.c:124 [inline] anon_pipe_write+0xc06/0x1480 fs/pipe.c:515 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe8/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e page last free pid 6051 tgid 6051 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xbe3/0xd50 mm/page_alloc.c:2978 __folio_put+0x227/0x2c0 mm/swap.c:112 pipe_buf_release include/linux/pipe_fs_i.h:273 [inline] pipe_update_tail fs/pipe.c:242 [inline] anon_pipe_read+0x660/0x10a0 fs/pipe.c:361 new_sync_read fs/read_write.c:493 [inline] vfs_read+0x582/0xa70 fs/read_write.c:574 ksys_read+0x150/0x270 fs/read_write.c:717 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe8/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e Memory state around the buggy address: ffff88806b393f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806b393f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806b394000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806b394080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806b394100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================