EXT4-fs warning (device loop2): dx_probe:806: inode #2: comm syz.2.21: Unrecognised inode hash code 20 EXT4-fs warning (device loop2): dx_probe:946: inode #2: comm syz.2.21: Corrupt directory, running e2fsck is recommended ================================================================== BUG: KASAN: use-after-free in __ext4_check_dir_entry+0x7e3/0x990 fs/ext4/dir.c:85 Read of size 2 at addr ffff888119fc2003 by task syz.2.21/553 CPU: 1 PID: 553 Comm: syz.2.21 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x100/0x140 mm/kasan/report.c:452 __asan_report_load2_noabort+0x14/0x20 mm/kasan/report_generic.c:307 __ext4_check_dir_entry+0x7e3/0x990 fs/ext4/dir.c:85 ext4_readdir+0x1220/0x3a80 fs/ext4/dir.c:261 iterate_dir+0x25c/0x560 fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xf2/0x250 fs/readdir.c:354 __x64_sys_getdents64+0x7b/0x90 fs/readdir.c:354 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fe4e78f9539 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:00007fe4e775e028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007fe4e7b64fa0 RCX: 00007fe4e78f9539 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007fe4e798cee0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe4e7b65038 R14: 00007fe4e7b64fa0 R15: 00007ffc0b2a2908 The buggy address belongs to the page: page:ffffea000467f080 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x119fc2 flags: 0x4000000000000000() raw: 4000000000000000 ffffea000467d4c8 ffffea000467f5c8 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffff7f 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 72, ts 4433141602, free_ts 35737124720 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x1a4/0x2d0 mm/slub.c:2965 vm_area_dup+0x26/0x250 kernel/fork.c:366 dup_mmap kernel/fork.c:550 [inline] dup_mm kernel/fork.c:1435 [inline] copy_mm+0x857/0x13d0 kernel/fork.c:1491 copy_process+0x1386/0x3320 kernel/fork.c:2268 kernel_clone+0x233/0x950 kernel/fork.c:2650 __do_sys_clone kernel/fork.c:2776 [inline] __se_sys_clone kernel/fork.c:2760 [inline] __x64_sys_clone+0x198/0x210 kernel/fork.c:2760 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page mm/page_alloc.c:3391 [inline] free_the_page mm/page_alloc.c:5443 [inline] __free_pages+0x146/0x390 mm/page_alloc.c:5454 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab mm/slub.c:1920 [inline] unfreeze_partials+0x150/0x180 mm/slub.c:2415 put_cpu_partial+0xc1/0x180 mm/slub.c:2451 __slab_free+0x2c9/0x3a0 mm/slub.c:3100 do_slab_free mm/slub.c:3196 [inline] ___cache_free+0x10e/0x130 mm/slub.c:3215 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x15a/0x2d0 mm/slub.c:2965 kmem_cache_alloc_node include/linux/slab.h:426 [inline] __alloc_skb+0x9e/0x520 net/core/skbuff.c:200 alloc_skb include/linux/skbuff.h:1126 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet6_netconf_notify_devconf+0xd6/0x190 net/ipv6/addrconf.c:579 __addrconf_sysctl_unregister net/ipv6/addrconf.c:7112 [inline] addrconf_exit_net+0xd6/0x200 net/ipv6/addrconf.c:7215 Memory state around the buggy address: ffff888119fc1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888119fc1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888119fc2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888119fc2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888119fc2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs error (device loop2): ext4_readdir:263: inode #2: block 3: comm syz.2.21: path /4/file0: bad entry in directory: rec_len % 4 != 0 - offset=2047, inode=4230258688, rec_len=33049, size=2048 fake=0 EXT4-fs error (device loop2) in ext4_reserve_inode_write:5971: Corrupt filesystem EXT4-fs error (device loop2): ext4_dirty_inode:6181: inode #2: comm syz.2.21: mark_inode_dirty error