EXT4-fs (loop2): Ignoring removed oldalloc option EXT4-fs (loop2): Ignoring removed mblk_io_submit option EXT4-fs (loop2): encrypted files will use data=ordered instead of data journaling mode EXT4-fs (loop2): 1 truncate cleaned up EXT4-fs (loop2): mounted filesystem without journal. Opts: errors=remount-ro,mblk_io_submit,mblk_io_submit,resgid=0x0000000000000000,oldalloc,mblk_io_submit,nogrpid,. Quota mode: none. ================================================================== 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 ffff888113591018 by task syz.2.19/488 CPU: 1 PID: 488 Comm: syz.2.19 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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_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:448 [inline] listxattr+0x28f/0x300 fs/xattr.c:783 path_listxattr+0xe1/0x1b0 fs/xattr.c:807 __do_sys_listxattr fs/xattr.c:819 [inline] __se_sys_listxattr fs/xattr.c:816 [inline] __x64_sys_listxattr+0x80/0x90 fs/xattr.c:816 x64_sys_call+0xd7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:195 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:0x7f9ea9d77e59 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:00007f9ea9bd9028 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007f9ea9ffffa0 RCX: 00007f9ea9d77e59 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000200000000140 RBP: 00007f9ea9e0de6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9eaa000038 R14: 00007f9ea9ffffa0 R15: 00007fff5aa2b458 Allocated by task 120: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] __kasan_slab_alloc+0xb7/0xe0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x4f/0x2b0 mm/slab.h:550 slab_alloc_node mm/slub.c:3245 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0xf7/0x260 mm/slub.c:3260 anon_vma_chain_alloc mm/rmap.c:141 [inline] __anon_vma_prepare+0x56/0x420 mm/rmap.c:195 do_anonymous_page mm/memory.c:4069 [inline] handle_pte_fault+0x1ff1/0x2770 mm/memory.c:4921 __handle_mm_fault mm/memory.c:-1 [inline] do_handle_mm_fault+0x1b3b/0x1e30 mm/memory.c:5345 handle_mm_fault include/linux/mm.h:1850 [inline] faultin_page mm/gup.c:976 [inline] __get_user_pages+0x80e/0x10c0 mm/gup.c:1197 __get_user_pages_locked mm/gup.c:1382 [inline] __get_user_pages_remote+0x1b4/0x770 mm/gup.c:2007 get_user_pages_remote+0x7a/0xb0 mm/gup.c:2080 get_arg_page+0x118/0x340 fs/exec.c:224 copy_string_kernel+0x15c/0x340 fs/exec.c:643 do_execveat_common+0x6f8/0xab0 fs/exec.c:1963 do_execve fs/exec.c:2059 [inline] __do_sys_execve fs/exec.c:2135 [inline] __se_sys_execve fs/exec.c:2130 [inline] __x64_sys_execve+0x92/0xb0 fs/exec.c:2130 x64_sys_call+0x919/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:60 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 The buggy address belongs to the object at ffff888113591000 which belongs to the cache anon_vma_chain of size 64 The buggy address is located 24 bytes inside of 64-byte region [ffff888113591000, ffff888113591040) The buggy address belongs to the page: page:ffffea00044d6440 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888113591f00 pfn:0x113591 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 ffffea00046760c0 0000000600000006 ffff888100187200 raw: ffff888113591f00 00000000802a0000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12800(GFP_NOWAIT|__GFP_NOWARN|__GFP_NORETRY), pid 79, ts 4461123198, free_ts 4459381426 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2610 prep_new_page+0x1c/0x110 mm/page_alloc.c:2616 get_page_from_freelist+0x2d42/0x2dd0 mm/page_alloc.c:4492 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5829 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa0/0x4d0 mm/slub.c:2000 ___slab_alloc+0x3ac/0x840 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0x138/0x260 mm/slub.c:3260 anon_vma_chain_alloc mm/rmap.c:141 [inline] anon_vma_clone+0xb7/0x4c0 mm/rmap.c:287 anon_vma_fork+0x8f/0x520 mm/rmap.c:350 dup_mmap kernel/fork.c:622 [inline] dup_mm kernel/fork.c:1533 [inline] copy_mm+0x9f9/0x13a0 kernel/fork.c:1585 copy_process+0x1130/0x3230 kernel/fork.c:2355 kernel_clone+0x233/0x960 kernel/fork.c:2744 __do_sys_clone kernel/fork.c:2870 [inline] __se_sys_clone kernel/fork.c:2854 [inline] __x64_sys_clone+0x198/0x210 kernel/fork.c:2854 x64_sys_call+0x41f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:57 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1477 [inline] free_pcp_prepare mm/page_alloc.c:1549 [inline] free_unref_page_prepare+0x5fa/0x600 mm/page_alloc.c:3540 free_unref_page_list+0x138/0x9e0 mm/page_alloc.c:3677 release_pages+0x1264/0x12c0 mm/swap.c:1033 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:320 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:338 exit_mmap+0x43b/0x8b0 mm/mmap.c:3257 __mmput+0x92/0x300 kernel/fork.c:1191 mmput+0x50/0x150 kernel/fork.c:1214 exit_mm kernel/exit.c:561 [inline] do_exit+0xacc/0x29a0 kernel/exit.c:883 do_group_exit+0x149/0x310 kernel/exit.c:1010 __do_sys_exit_group kernel/exit.c:1021 [inline] __se_sys_exit_group kernel/exit.c:1019 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1019 x64_sys_call+0x832/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:232 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 Memory state around the buggy address: ffff888113590f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888113590f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888113591000: fb fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb ^ ffff888113591080: fb fb fb fb fc fc fc fc fb fb fb fb fb fb fb fb ffff888113591100: fc fc fc fc fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================