================================================================== BUG: KASAN: use-after-free in ext4_xattr_list_entries fs/ext4/xattr.c:670 [inline] BUG: KASAN: use-after-free in ext4_xattr_ibody_list fs/ext4/xattr.c:740 [inline] BUG: KASAN: use-after-free in ext4_listxattr+0x4a9/0xc60 fs/ext4/xattr.c:765 Read of size 4 at addr ffff888125ea3018 by task syz.6.18/424 CPU: 1 PID: 424 Comm: syz.6.18 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/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_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_xattr_list_entries fs/ext4/xattr.c:670 [inline] ext4_xattr_ibody_list fs/ext4/xattr.c:740 [inline] ext4_listxattr+0x4a9/0xc60 fs/ext4/xattr.c:765 vfs_listxattr fs/xattr.c:420 [inline] listxattr+0x28f/0x300 fs/xattr.c:715 path_listxattr+0xe1/0x1b0 fs/xattr.c:739 __do_sys_listxattr fs/xattr.c:751 [inline] __se_sys_listxattr fs/xattr.c:748 [inline] __x64_sys_listxattr+0x80/0x90 fs/xattr.c:748 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f0920471e59 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:00007f09202d3028 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007f09206f9fa0 RCX: 00007f0920471e59 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000200000000140 RBP: 00007f0920507e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f09206fa038 R14: 00007f09206f9fa0 R15: 00007fffca09b728 The buggy address belongs to the page: page:ffffea000497a8c0 refcount:1 mapcount:1 mapping:0000000000000000 index:0x5642fd1eb pfn:0x125ea3 anon flags: 0x4000000000080014(uptodate|lru|swapbacked) raw: 4000000000080014 ffffea0004989848 ffffea000497f848 ffff88810dcac399 raw: 00000005642fd1eb 0000000000000000 0000000100000000 ffff888100144000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff888100144000 page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x100cca(GFP_HIGHUSER_MOVABLE), pid 432, ts 39148152928, free_ts 38940655290 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_pages include/linux/gfp.h:544 [inline] __alloc_pages_node include/linux/gfp.h:557 [inline] alloc_pages_node include/linux/gfp.h:571 [inline] alloc_pages include/linux/gfp.h:590 [inline] wp_page_copy+0x209/0x15a0 mm/memory.c:3171 do_wp_page+0x772/0xd00 mm/memory.c:-1 handle_pte_fault+0xbc3/0x3910 mm/memory.c:4819 __handle_mm_fault mm/memory.c:4953 [inline] handle_mm_fault+0xf86/0x1720 mm/memory.c:5367 do_user_addr_fault+0x576/0xe20 arch/x86/mm/fault.c:1343 handle_page_fault arch/x86/mm/fault.c:1436 [inline] exc_page_fault+0x5a/0xc0 arch/x86/mm/fault.c:1492 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571 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_list+0x129/0x9c0 mm/page_alloc.c:3443 release_pages+0xe41/0xe90 mm/swap.c:1103 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:356 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x17e/0x310 mm/mmu_gather.c:326 exit_mmap+0x329/0x590 mm/mmap.c:3387 __mmput+0x92/0x2d0 kernel/fork.c:1153 mmput+0x4e/0x150 kernel/fork.c:1176 exit_mm kernel/exit.c:540 [inline] do_exit+0x9d8/0x24e0 kernel/exit.c:860 do_group_exit+0x149/0x310 kernel/exit.c:987 get_signal+0xfb1/0x1300 kernel/signal.c:2794 arch_do_signal_or_restart+0xe7/0x11b0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop+0xa2/0xe0 kernel/entry/common.c:169 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56 Memory state around the buggy address: ffff888125ea2f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888125ea2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888125ea3000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888125ea3080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888125ea3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================