RAX: ffffffffffffffda RBX: 00007f85bfbcff80 RCX: 00007f85bfab00a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000004843000 RBP: 00007f85be8231d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000002 R13: 00007ffd2678c65f R14: 00007f85be823300 R15: 0000000000022000 ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3515 [inline] BUG: KASAN: double-free or invalid-free in kfree+0xc8/0x210 mm/slub.c:4575 CPU: 0 PID: 23618 Comm: syz-executor.3 Not tainted 5.15.78-syzkaller-00911-gc73b4619ad86 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 print_address_description+0x87/0x3d0 mm/kasan/report.c:256 kasan_report_invalid_free+0x72/0xa0 mm/kasan/report.c:378 ____kasan_slab_free+0x13e/0x160 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1721 [inline] slab_free_freelist_hook+0xc9/0x1a0 mm/slub.c:1747 slab_free mm/slub.c:3515 [inline] kfree+0xc8/0x210 mm/slub.c:4575 anon_vma_name_free+0x15/0x20 mm/madvise.c:88 kref_put include/linux/kref.h:65 [inline] anon_vma_name_put include/linux/mm_inline.h:343 [inline] free_anon_vma_name include/linux/mm_inline.h:374 [inline] vm_area_free+0xa6/0x230 kernel/fork.c:400 dup_mmap+0xbcd/0xea0 kernel/fork.c:671 dup_mm+0x91/0x330 kernel/fork.c:1502 copy_mm+0x108/0x1b0 kernel/fork.c:1554 copy_process+0x1295/0x3250 kernel/fork.c:2245 kernel_clone+0x22d/0x990 kernel/fork.c:2646 __do_sys_clone kernel/fork.c:2772 [inline] __se_sys_clone kernel/fork.c:2756 [inline] __x64_sys_clone+0x289/0x310 kernel/fork.c:2756 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f85bfab00a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f85be823118 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007f85bfbcff80 RCX: 00007f85bfab00a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000004843000 RBP: 00007f85be8231d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000002 R13: 00007ffd2678c65f R14: 00007f85be823300 R15: 0000000000022000 Allocated by task 406: 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+0xb2/0xe0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook mm/slab.h:550 [inline] slab_alloc_node mm/slub.c:3236 [inline] slab_alloc mm/slub.c:3244 [inline] kmem_cache_alloc+0x189/0x2f0 mm/slub.c:3249 vm_area_alloc+0x24/0x130 kernel/fork.c:359 mmap_region+0xb80/0x1af0 mm/mmap.c:1780 do_mmap+0x785/0xe40 mm/mmap.c:1584 vm_mmap_pgoff+0x1d4/0x420 mm/util.c:554 vm_mmap+0x8d/0xb0 mm/util.c:574 elf_map+0x1b1/0x310 fs/binfmt_elf.c:392 load_elf_binary+0x101c/0x27e0 fs/binfmt_elf.c:1141 search_binary_handler fs/exec.c:1739 [inline] exec_binprm+0x2a8/0xbc0 fs/exec.c:1780 bprm_execve+0x4f0/0x7f0 fs/exec.c:1849 do_execveat_common+0xa92/0xc80 fs/exec.c:1954 do_execve fs/exec.c:2024 [inline] __do_sys_execve fs/exec.c:2100 [inline] __se_sys_execve fs/exec.c:2095 [inline] __x64_sys_execve+0x92/0xb0 fs/exec.c:2095 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88811fc474a0 which belongs to the cache vm_area_struct of size 232 The buggy address is located 88 bytes inside of 232-byte region [ffff88811fc474a0, ffff88811fc47588) The buggy address belongs to the page: page:ffffea00047f11c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11fc47 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 ffffea0004356e40 0000000600000006 ffff888100275b00 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 406, ts 19345896662, free_ts 19345829821 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1ab/0x1b0 mm/page_alloc.c:2495 prep_new_page mm/page_alloc.c:2501 [inline] get_page_from_freelist+0x38b/0x400 mm/page_alloc.c:4281 __alloc_pages+0x3a8/0x7c0 mm/page_alloc.c:5548 allocate_slab+0x62/0x580 mm/slub.c:1928 new_slab mm/slub.c:1991 [inline] ___slab_alloc+0x2e2/0x6f0 mm/slub.c:3024 __slab_alloc+0x4a/0x90 mm/slub.c:3111 slab_alloc_node mm/slub.c:3202 [inline] slab_alloc mm/slub.c:3244 [inline] kmem_cache_alloc+0x205/0x2f0 mm/slub.c:3249 vm_area_alloc+0x24/0x130 kernel/fork.c:359 mmap_region+0xb80/0x1af0 mm/mmap.c:1780 do_mmap+0x785/0xe40 mm/mmap.c:1584 vm_mmap_pgoff+0x1d4/0x420 mm/util.c:554 vm_mmap+0x8d/0xb0 mm/util.c:574 elf_map+0x1b1/0x310 fs/binfmt_elf.c:392 load_elf_binary+0x101c/0x27e0 fs/binfmt_elf.c:1141 search_binary_handler fs/exec.c:1739 [inline] exec_binprm+0x2a8/0xbc0 fs/exec.c:1780 bprm_execve+0x4f0/0x7f0 fs/exec.c:1849 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1364 [inline] free_pcp_prepare+0x448/0x450 mm/page_alloc.c:1435 free_unref_page_prepare mm/page_alloc.c:3433 [inline] free_unref_page_list+0x16a/0xad0 mm/page_alloc.c:3554 release_pages+0xf3e/0xf90 mm/swap.c:1010 free_pages_and_swap_cache+0x97/0xb0 mm/swap_state.c:320 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:242 [inline] tlb_flush_mmu+0x860/0xa00 mm/mmu_gather.c:249 tlb_finish_mmu+0xd2/0x1f0 mm/mmu_gather.c:340 shift_arg_pages fs/exec.c:736 [inline] setup_arg_pages+0x9b8/0xb30 fs/exec.c:831 load_elf_binary+0xbf3/0x27e0 fs/binfmt_elf.c:1018 search_binary_handler fs/exec.c:1739 [inline] exec_binprm+0x2a8/0xbc0 fs/exec.c:1780 bprm_execve+0x4f0/0x7f0 fs/exec.c:1849 do_execveat_common+0xa92/0xc80 fs/exec.c:1954 do_execve fs/exec.c:2024 [inline] __do_sys_execve fs/exec.c:2100 [inline] __se_sys_execve fs/exec.c:2095 [inline] __x64_sys_execve+0x92/0xb0 fs/exec.c:2095 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff88811fc47380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811fc47400: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc >ffff88811fc47480: fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88811fc47500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811fc47580: 00 fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb ==================================================================