==================================================================
BUG: KASAN: slab-use-after-free in khugepaged+0x305/0x16a0
Read of size 8 at addr ffff88803c3ab448 by task khugepaged/41

CPU: 0 UID: 0 PID: 41 Comm: khugepaged Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 khugepaged+0x305/0x16a0
 kthread+0x711/0x8a0
 ret_from_fork+0x4bc/0x870
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 19028:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x367/0x6e0
 __khugepaged_enter+0xae/0x2e0
 dup_mmap+0x1821/0x1b10
 copy_mm+0x13c/0x4b0
 copy_process+0x1706/0x3c00
 kernel_clone+0x21e/0x840
 __se_sys_clone3+0x256/0x2d0
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 41:
 kasan_save_track+0x3e/0x80
 __kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 kmem_cache_free+0x19b/0x690
 collect_mm_slot+0x263/0x310
 khugepaged+0xefe/0x16a0
 kthread+0x711/0x8a0
 ret_from_fork+0x4bc/0x870
 ret_from_fork_asm+0x1a/0x30

The buggy address belongs to the object at ffff88803c3ab428
 which belongs to the cache khugepaged_mm_slot of size 40
The buggy address is located 32 bytes inside of
 freed 40-byte region [ffff88803c3ab428, ffff88803c3ab450)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803c3ab5e8 pfn:0x3c3ab
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88810068a780 dead000000000122 0000000000000000
raw: ffff88803c3ab5e8 0000000080490016 00000000f5000000 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 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 6075, tgid 6072 (syz.1.52), ts 75140064992, free_ts 69614306388
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x96/0x3a0
 ___slab_alloc+0xe94/0x1920
 __slab_alloc+0x65/0x100
 kmem_cache_alloc_noprof+0x3f9/0x6e0
 __khugepaged_enter+0xae/0x2e0
 hugepage_madvise+0xa6/0xc0
 madvise_vma_behavior+0xc4e/0x3a10
 madvise_walk_vmas+0x51c/0xa30
 madvise_do_behavior+0x38e/0x550
 do_madvise+0x1bc/0x270
 __x64_sys_madvise+0xa7/0xc0
 do_syscall_64+0xfa/0xfa0
page last free pid 5851 tgid 5851 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 tlb_remove_table_rcu+0x85/0x100
 rcu_core+0xcab/0x1770
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20

Memory state around the buggy address:
 ffff88803c3ab300: fc fc fa fb fb fb fb fc fc fa fb fb fb fb fc fc
 ffff88803c3ab380: fa fb fb fb fb fc fc fa fb fb fb fb fc fc fa fb
>ffff88803c3ab400: fb fb fb fc fc fa fb fb fb fb fc fc fa fb fb fb
                                              ^
 ffff88803c3ab480: fb fc fc fa fb fb fb fb fc fc fa fb fb fb fb fc
 ffff88803c3ab500: fc fa fb fb fb fb fc fc fa fb fb fb fb fc fc fa
==================================================================
