RBP: 00007fb6fe2fe120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000002 R13: 000000000000000b R14: 00007fb6fe89af80 R15: 00007fff9c8b21e8 ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3521 [inline] BUG: KASAN: double-free or invalid-free in kfree+0xc4/0x270 mm/slub.c:4583 CPU: 0 PID: 340 Comm: syz-executor.0 Not tainted 5.15.180-syzkaller-1080043-g88c4075c39ed #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/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:1723 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1749 slab_free mm/slub.c:3521 [inline] kfree+0xc4/0x270 mm/slub.c:4583 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:365 [inline] free_anon_vma_name include/linux/mm_inline.h:396 [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+0xe77/0x1390 kernel/fork.c:1574 copy_process+0x1159/0x3250 kernel/fork.c:2263 kernel_clone+0x23f/0x940 kernel/fork.c:2661 __do_sys_clone kernel/fork.c:2787 [inline] __se_sys_clone kernel/fork.c:2771 [inline] __x64_sys_clone+0x176/0x1d0 kernel/fork.c:2771 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:0x7fb6fe77bae9 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:00007fb6fe2fe078 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007fb6fe89af80 RCX: 00007fb6fe77bae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000600 RBP: 00007fb6fe2fe120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000002 R13: 000000000000000b R14: 00007fb6fe89af80 R15: 00007fff9c8b21e8 Allocated by task 313: 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:3240 [inline] slab_alloc mm/slub.c:3250 [inline] kmem_cache_alloc+0xf7/0x260 mm/slub.c:3255 vm_area_alloc+0x24/0x130 kernel/fork.c:360 __mmap_region mm/mmap.c:1782 [inline] mmap_region+0x9b2/0x1800 mm/mmap.c:2947 do_mmap+0x76c/0xe40 mm/mmap.c:1586 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 The buggy address belongs to the object at ffff8881217286f0 which belongs to the cache vm_area_struct of size 232 The buggy address is located 88 bytes inside of 232-byte region [ffff8881217286f0, ffff8881217287d8) The buggy address belongs to the page: page:ffffea000485ca00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x121728 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff888100186600 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 308, ts 45812864065, free_ts 45808374757 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:5781 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1932 [inline] new_slab+0xa1/0x4d0 mm/slub.c:1995 ___slab_alloc+0x381/0x810 mm/slub.c:3028 __slab_alloc+0x49/0x90 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3250 [inline] kmem_cache_alloc+0x138/0x260 mm/slub.c:3255 vm_area_dup+0x26/0x210 kernel/fork.c:368 __split_vma+0xac/0x3e0 mm/mmap.c:2741 split_vma+0x7c/0xd0 mm/mmap.c:2801 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 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+0x134/0x9d0 mm/page_alloc.c:3671 release_pages+0x1076/0x10d0 mm/swap.c:1009 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+0x175/0x300 mm/mmu_gather.c:338 exit_mmap+0x40f/0x860 mm/mmap.c:3236 __mmput+0x93/0x320 kernel/fork.c:1180 mmput+0x50/0x150 kernel/fork.c:1203 exec_mmap+0x422/0x4e0 fs/exec.c:1047 begin_new_exec+0xa8b/0x1ea0 fs/exec.c:1306 load_elf_binary+0x98e/0x2890 fs/binfmt_elf.c:1001 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 Memory state around the buggy address: ffff888121728600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888121728680: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 >ffff888121728700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888121728780: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc ffff888121728800: fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================