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:00007fe6d9dc5118 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007fe6db171f80 RCX: 00007fe6db0520f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000008000000 RBP: 00007fe6d9dc51d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000002 R13: 00007ffc6784049f R14: 00007fe6d9dc5300 R15: 0000000000022000 ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3517 [inline] BUG: KASAN: double-free or invalid-free in kfree+0xc8/0x220 mm/slub.c:4577 CPU: 1 PID: 2140 Comm: syz-executor.3 Not tainted 5.15.98-syzkaller-00348-g7364b7abbafb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 print_address_description+0x87/0x3b0 mm/kasan/report.c:248 kasan_report_invalid_free+0x6b/0xa0 mm/kasan/report.c:370 ____kasan_slab_free+0x13e/0x160 __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+0xbd/0x190 mm/slub.c:1749 slab_free mm/slub.c:3517 [inline] kfree+0xc8/0x220 mm/slub.c:4577 anon_vma_name_free+0x15/0x20 mm/madvise.c:90 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+0xa6/0x130 kernel/fork.c:405 vm_area_free kernel/fork.c:418 [inline] dup_mmap kernel/fork.c:680 [inline] dup_mm+0xd73/0x12c0 kernel/fork.c:1513 copy_mm+0x107/0x1b0 kernel/fork.c:1565 copy_process+0x12bc/0x3260 kernel/fork.c:2256 kernel_clone+0x21e/0x9e0 kernel/fork.c:2659 __do_sys_clone kernel/fork.c:2785 [inline] __se_sys_clone kernel/fork.c:2769 [inline] __x64_sys_clone+0x23f/0x290 kernel/fork.c:2769 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fe6db0520f9 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:00007fe6d9dc5118 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007fe6db171f80 RCX: 00007fe6db0520f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000008000000 RBP: 00007fe6d9dc51d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000002 R13: 00007ffc6784049f R14: 00007fe6d9dc5300 R15: 0000000000022000 Allocated by task 322: 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+0xb1/0xe0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:550 slab_alloc_node mm/slub.c:3238 [inline] slab_alloc mm/slub.c:3246 [inline] kmem_cache_alloc+0xf5/0x200 mm/slub.c:3251 vm_area_alloc+0x24/0x130 kernel/fork.c:359 mmap_region+0xb5d/0x1b60 mm/mmap.c:1780 do_mmap+0x776/0xe50 mm/mmap.c:1584 vm_mmap_pgoff+0x1dd/0x450 mm/util.c:554 vm_mmap+0x8d/0xb0 mm/util.c:574 elf_map+0x19c/0x240 fs/binfmt_elf.c:392 load_elf_binary+0xfe0/0x2750 fs/binfmt_elf.c:1141 search_binary_handler fs/exec.c:1739 [inline] exec_binprm fs/exec.c:1780 [inline] bprm_execve+0x7ae/0x14a0 fs/exec.c:1849 do_execveat_common+0x565/0x710 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+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff888119c48128 which belongs to the cache vm_area_struct of size 232 The buggy address is located 88 bytes inside of 232-byte region [ffff888119c48128, ffff888119c48210) The buggy address belongs to the page: page:ffffea0004671200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x119c48 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 dead000000000100 dead000000000122 ffff8881001b5380 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 322, ts 18577099509, free_ts 18577078517 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2502 prep_new_page mm/page_alloc.c:2508 [inline] get_page_from_freelist+0x2c14/0x2cf0 mm/page_alloc.c:4291 __alloc_pages+0x386/0x7b0 mm/page_alloc.c:5569 allocate_slab mm/slub.c:1930 [inline] new_slab+0x92/0x490 mm/slub.c:1993 ___slab_alloc+0x39e/0x830 mm/slub.c:3026 __slab_alloc+0x4a/0x90 mm/slub.c:3113 slab_alloc_node mm/slub.c:3204 [inline] slab_alloc mm/slub.c:3246 [inline] kmem_cache_alloc+0x134/0x200 mm/slub.c:3251 vm_area_alloc+0x24/0x130 kernel/fork.c:359 mmap_region+0xb5d/0x1b60 mm/mmap.c:1780 do_mmap+0x776/0xe50 mm/mmap.c:1584 vm_mmap_pgoff+0x1dd/0x450 mm/util.c:554 vm_mmap+0x8d/0xb0 mm/util.c:574 elf_map+0x10e/0x240 fs/binfmt_elf.c:388 load_elf_binary+0xfe0/0x2750 fs/binfmt_elf.c:1141 search_binary_handler fs/exec.c:1739 [inline] exec_binprm fs/exec.c:1780 [inline] bprm_execve+0x7ae/0x14a0 fs/exec.c:1849 do_execveat_common+0x565/0x710 fs/exec.c:1954 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1370 [inline] free_pcp_prepare mm/page_alloc.c:1442 [inline] free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3441 free_unref_page_list+0x15d/0x980 mm/page_alloc.c:3562 release_pages+0x1310/0x1370 mm/swap.c:1009 free_pages_and_swap_cache+0x8a/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+0x177/0x320 mm/mmu_gather.c:338 shift_arg_pages fs/exec.c:736 [inline] setup_arg_pages+0x910/0xab0 fs/exec.c:831 load_elf_binary+0xbab/0x2750 fs/binfmt_elf.c:1018 search_binary_handler fs/exec.c:1739 [inline] exec_binprm fs/exec.c:1780 [inline] bprm_execve+0x7ae/0x14a0 fs/exec.c:1849 do_execveat_common+0x565/0x710 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+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff888119c48080: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ffff888119c48100: fc fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 >ffff888119c48180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888119c48200: 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 ffff888119c48280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 28 00 sub %al,(%rax) 2: 00 00 add %al,(%rax) 4: 75 05 jne 0xb 6: 48 83 c4 28 add $0x28,%rsp a: c3 retq b: e8 f1 19 00 00 callq 0x1a01 10: 90 nop 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 retq 33: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W