================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xc94/0xca0 fs/ext4/xattr.c:2902 Read of size 4 at addr ffff88811fa3c000 by task syz-executor/462 CPU: 0 PID: 462 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0xf1/0x140 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_xattr_delete_inode+0xc94/0xca0 fs/ext4/xattr.c:2902 ext4_evict_inode+0xe50/0x1460 fs/ext4/inode.c:300 evict+0x4c9/0x8d0 fs/inode.c:650 iput_final fs/inode.c:1779 [inline] iput+0x635/0x7c0 fs/inode.c:1805 d_delete_notify include/linux/fsnotify.h:278 [inline] vfs_rmdir+0x33f/0x460 fs/namei.c:4170 do_rmdir+0x261/0x6b0 fs/namei.c:4218 __do_sys_unlinkat fs/namei.c:4398 [inline] __se_sys_unlinkat fs/namei.c:4392 [inline] __x64_sys_unlinkat+0xc7/0xf0 fs/namei.c:4392 x64_sys_call+0x4c0/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:264 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:0x7f30cac28d07 Code: 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 b8 07 01 00 00 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:00007ffe8775ba58 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f30cac28d07 RDX: 0000000000000200 RSI: 00007ffe8775cc00 RDI: 00000000ffffff9c RBP: 00007f30cacac952 R08: 0000000000008670 R09: 00000000ffffffff R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffe8775cc00 R13: 00007f30cacac952 R14: 000000000000b768 R15: 00007ffe8775edb0 The buggy address belongs to the page: page:ffffea00047e8f00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11fa3c flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea00047e8f48 ffffea000484ee48 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 0x112c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 480, ts 46964129968, free_ts 46971399777 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1c/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x2d3a/0x2dc0 mm/page_alloc.c:4485 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5822 __alloc_pages_node include/linux/gfp.h:595 [inline] alloc_pages_node include/linux/gfp.h:609 [inline] alloc_pages include/linux/gfp.h:622 [inline] __page_cache_alloc include/linux/pagemap.h:305 [inline] page_cache_ra_unbounded+0x2d5/0x9a0 mm/readahead.c:227 do_page_cache_ra mm/readahead.c:280 [inline] ondemand_readahead+0x8fa/0xe80 mm/readahead.c:565 page_cache_async_ra+0x2a9/0x2e0 mm/readahead.c:624 page_cache_async_readahead include/linux/pagemap.h:854 [inline] do_async_mmap_readahead mm/filemap.c:3045 [inline] filemap_fault+0x9b5/0x1770 mm/filemap.c:3150 __do_fault+0x264/0x2f0 mm/memory.c:4192 do_read_fault mm/memory.c:4556 [inline] do_fault mm/memory.c:4697 [inline] handle_pte_fault+0x187d/0x2710 mm/memory.c:4911 __handle_mm_fault mm/memory.c:-1 [inline] do_handle_mm_fault+0x1af9/0x1de0 mm/memory.c:5333 handle_mm_fault include/linux/mm.h:1847 [inline] faultin_page mm/gup.c:976 [inline] __get_user_pages+0x80e/0x10c0 mm/gup.c:1197 populate_vma_page_range mm/gup.c:1529 [inline] __mm_populate+0x324/0x470 mm/gup.c:1638 mm_populate include/linux/mm.h:2704 [inline] vm_mmap_pgoff+0x262/0x430 mm/util.c:560 ksys_mmap_pgoff+0x161/0x1d0 mm/mmap.c:1647 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0xfa/0x110 arch/x86/kernel/sys_x86_64.c:86 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1472 [inline] free_pcp_prepare mm/page_alloc.c:1544 [inline] free_unref_page_prepare+0x542/0x550 mm/page_alloc.c:3534 free_unref_page_list+0x13a/0x9d0 mm/page_alloc.c:3671 release_pages+0x1006/0x1060 mm/swap.c:1015 __pagevec_release+0x71/0xe0 mm/swap.c:1035 pagevec_release include/linux/pagevec.h:81 [inline] __invalidate_mapping_pages+0x4fe/0x700 mm/truncate.c:517 invalidate_mapping_pages+0x27/0x30 mm/truncate.c:541 invalidate_bdev+0xa6/0x150 block/bdev.c:88 ext4_put_super+0x6cb/0xa70 fs/ext4/super.c:1247 generic_shutdown_super+0x151/0x330 fs/super.c:475 kill_block_super+0x7f/0xf0 fs/super.c:1427 deactivate_locked_super+0xa0/0x100 fs/super.c:335 deactivate_super+0xaf/0xe0 fs/super.c:366 cleanup_mnt+0x45b/0x510 fs/namespace.c:1148 __cleanup_mnt+0x19/0x20 fs/namespace.c:1155 task_work_run+0x127/0x190 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0xd0/0xe0 kernel/entry/common.c:181 Memory state around the buggy address: ffff88811fa3bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811fa3bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811fa3c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88811fa3c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811fa3c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================