================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xc9a/0xca0 fs/ext4/xattr.c:2907 Read of size 4 at addr ffff8881139d0000 by task syz-executor/460 CPU: 1 PID: 460 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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+0x10f/0x150 mm/kasan/report.c:444 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_xattr_delete_inode+0xc9a/0xca0 fs/ext4/xattr.c:2907 ext4_evict_inode+0xe0a/0x1420 fs/ext4/inode.c:302 evict+0x4b6/0x8b0 fs/inode.c:650 iput_final fs/inode.c:1779 [inline] iput+0x651/0x7e0 fs/inode.c:1805 d_delete_notify include/linux/fsnotify.h:278 [inline] vfs_rmdir+0x329/0x450 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:0x7fdd899a4547 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:00007ffeb3ca99d8 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007fdd899a4547 RDX: 0000000000000200 RSI: 00007ffeb3caab80 RDI: 00000000ffffff9c RBP: 00007fdd89a27a12 R08: 0000000000008660 R09: 00000000ffffffff R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffeb3caab80 R13: 00007fdd89a27a12 R14: 0000000000009794 R15: 00007ffeb3cacd30 The buggy address belongs to the page: page:ffffea00044e7400 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1139d0 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea00047c11c8 ffffea00044e7448 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 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 455, ts 38147084938, free_ts 38201341251 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2607 prep_new_page+0x1c/0x110 mm/page_alloc.c:2613 get_page_from_freelist+0x2c3a/0x2cd0 mm/page_alloc.c:4487 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5824 vm_area_alloc_pages mm/vmalloc.c:-1 [inline] __vmalloc_area_node mm/vmalloc.c:2981 [inline] __vmalloc_node_range+0x507/0xad0 mm/vmalloc.c:3147 vmalloc_user+0x73/0x80 mm/vmalloc.c:3298 kcov_mmap+0x2b/0x130 kernel/kcov.c:479 call_mmap include/linux/fs.h:2223 [inline] mmap_file+0x60/0xb0 mm/util.c:1099 __mmap_region mm/mmap.c:1808 [inline] mmap_region+0xe42/0x1700 mm/mmap.c:2959 do_mmap+0x812/0xf10 mm/mmap.c:1598 vm_mmap_pgoff+0x1d6/0x410 mm/util.c:555 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 x64_sys_call+0x83/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:10 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:26 [inline] free_pages_prepare mm/page_alloc.c:1474 [inline] free_pcp_prepare mm/page_alloc.c:1546 [inline] free_unref_page_prepare+0x5fa/0x600 mm/page_alloc.c:3536 free_unref_page+0xae/0x540 mm/page_alloc.c:3618 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5900 __vunmap+0x801/0x980 mm/vmalloc.c:2660 __vfree mm/vmalloc.c:2709 [inline] vfree+0x8b/0xc0 mm/vmalloc.c:2740 kcov_put kernel/kcov.c:422 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:524 __fput+0x22b/0x900 fs/file_table.c:311 ____fput+0x15/0x20 fs/file_table.c:339 task_work_run+0x127/0x190 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0xb70/0x29a0 kernel/exit.c:896 do_group_exit+0x149/0x310 kernel/exit.c:1010 get_signal+0x64f/0x1430 kernel/signal.c:2920 arch_do_signal_or_restart+0xe2/0x1100 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:157 [inline] exit_to_user_mode_loop+0xa7/0xe0 kernel/entry/common.c:181 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:217 __syscall_exit_to_user_mode_work kernel/entry/common.c:299 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:310 Memory state around the buggy address: ffff8881139cff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881139cff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881139d0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881139d0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881139d0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================