R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000002 R13: 000000000000000b R14: 00007f6025d3ef80 R15: 00007ffec0004308 ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3526 [inline] BUG: KASAN: double-free or invalid-free in kfree+0xc4/0x270 mm/slub.c:4588 CPU: 1 PID: 365 Comm: syz-executor.0 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 kasan_report_invalid_free+0x58/0x90 mm/kasan/report.c:370 ____kasan_slab_free+0x13d/0x160 mm/kasan/common.c:-1 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1728 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754 slab_free mm/slub.c:3526 [inline] kfree+0xc4/0x270 mm/slub.c:4588 anon_vma_name_free+0x15/0x20 mm/madvise.c:91 kref_put include/linux/kref.h:65 [inline] anon_vma_name_put include/linux/mm_inline.h:375 [inline] free_anon_vma_name include/linux/mm_inline.h:406 [inline] vm_area_free_no_check+0xa9/0x140 kernel/fork.c:406 vm_area_free kernel/fork.c:419 [inline] dup_mmap kernel/fork.c:682 [inline] dup_mm kernel/fork.c:1522 [inline] copy_mm+0xe7d/0x13a0 kernel/fork.c:1574 copy_process+0x115c/0x3210 kernel/fork.c:2348 kernel_clone+0x23f/0x940 kernel/fork.c:2737 __do_sys_clone kernel/fork.c:2863 [inline] __se_sys_clone kernel/fork.c:2847 [inline] __x64_sys_clone+0x176/0x1d0 kernel/fork.c:2847 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 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f6025c1f959 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f60257a2078 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007f6025d3ef80 RCX: 00007f6025c1f959 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000022002000 RBP: 00007f60257a2120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000002 R13: 000000000000000b R14: 00007f6025d3ef80 R15: 00007ffec0004308 Allocated by task 328: 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+0xbd/0xf0 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 vm_area_alloc+0x24/0x130 kernel/fork.c:360 __mmap_region mm/mmap.c:1794 [inline] mmap_region+0xa54/0x1800 mm/mmap.c:2959 do_mmap+0x812/0xf10 mm/mmap.c:1598 vm_mmap_pgoff+0x1ce/0x410 mm/util.c:555 vm_mmap+0x87/0xb0 mm/util.c:575 elf_map+0x190/0x230 fs/binfmt_elf.c:392 load_elf_binary+0x1082/0x2890 fs/binfmt_elf.c:1141 search_binary_handler fs/exec.c:1755 [inline] exec_binprm fs/exec.c:1796 [inline] bprm_execve+0x795/0x1480 fs/exec.c:1865 do_execveat_common+0x923/0xa80 fs/exec.c:1970 do_execve fs/exec.c:2040 [inline] __do_sys_execve fs/exec.c:2116 [inline] __se_sys_execve fs/exec.c:2111 [inline] __x64_sys_execve+0x92/0xb0 fs/exec.c:2111 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 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 __call_rcu_common kernel/rcu/tree.c:3011 [inline] call_rcu+0x105/0xfe0 kernel/rcu/tree.c:3129 free_vm_area_struct kernel/fork.c:395 [inline] vm_area_free_no_check+0x10e/0x140 kernel/fork.c:409 vm_area_free+0x56/0x60 kernel/fork.c:419 remove_vma mm/mmap.c:191 [inline] exit_mmap+0x4ba/0x860 mm/mmap.c:3254 __mmput+0x93/0x320 kernel/fork.c:1180 mmput+0x50/0x150 kernel/fork.c:1203 exit_mm kernel/exit.c:554 [inline] do_exit+0x9d2/0x27a0 kernel/exit.c:876 do_group_exit+0x141/0x310 kernel/exit.c:1003 __do_sys_exit_group kernel/exit.c:1014 [inline] __se_sys_exit_group kernel/exit.c:1012 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1012 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 The buggy address belongs to the object at ffff88810d0f3b90 which belongs to the cache vm_area_struct of size 232 The buggy address is located 88 bytes inside of 232-byte region [ffff88810d0f3b90, ffff88810d0f3c78) The buggy address belongs to the page: page:ffffea0004343cc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10d0f3 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 0000000400000001 ffff888100187380 raw: 0000000000000000 00000000000d000d 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 73, ts 3519763555, free_ts 0 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+0x2cc5/0x2d50 mm/page_alloc.c:4485 __alloc_pages+0x18f/0x440 mm/page_alloc.c:5808 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa1/0x4d0 mm/slub.c:2000 ___slab_alloc+0x381/0x810 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 vm_area_dup+0x26/0x210 kernel/fork.c:368 __split_vma+0xac/0x3e0 mm/mmap.c:2753 split_vma+0x7c/0xd0 mm/mmap.c:2813 mprotect_fixup+0x535/0x7d0 mm/mprotect.c:490 do_mprotect_pkey+0x70b/0xa80 mm/mprotect.c:646 __do_sys_mprotect mm/mprotect.c:673 [inline] __se_sys_mprotect mm/mprotect.c:670 [inline] __x64_sys_mprotect+0x80/0x90 mm/mprotect.c:670 x64_sys_call+0x912/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:11 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 page_owner free stack trace missing Memory state around the buggy address: ffff88810d0f3a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88810d0f3b00: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc >ffff88810d0f3b80: fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88810d0f3c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc ffff88810d0f3c80: fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 00 ==================================================================