================================================================== BUG: KASAN: slab-use-after-free in flush_tlb_func+0x24d/0x560 Write of size 8 at addr ffff88803f799e00 by task swapper/1/0 CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.16.0-rc4-next-20250630 #1 PREEMPT(voluntary) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xca/0x120 print_report+0xcb/0x670 kasan_report+0xca/0x100 kasan_check_range+0x39/0x1b0 flush_tlb_func+0x24d/0x560 __flush_smp_call_function_queue+0x20d/0x740 flush_smp_call_function_queue+0x9c/0xf0 do_idle+0x274/0x490 cpu_startup_entry+0x4f/0x60 start_secondary+0x1bd/0x210 common_startup_64+0x13e/0x148 Allocated by task 21621: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 __kasan_slab_alloc+0x59/0x70 kmem_cache_alloc_noprof+0x13c/0x470 mm_alloc+0x1d/0xd0 alloc_bprm+0x2e3/0x6e0 do_execveat_common+0x235/0x770 __x64_sys_execve+0x95/0xc0 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 273: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3a/0x60 __kasan_slab_free+0x38/0x50 kmem_cache_free+0x2a1/0x460 finish_task_switch.isra.0+0x478/0x840 __schedule+0xe4e/0x3520 schedule+0xdb/0x390 do_wait+0x32a/0x560 kernel_waitid+0x101/0x170 __do_sys_waitid+0x201/0x240 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803f799480 which belongs to the cache mm_struct of size 2456 The buggy address is located 2432 bytes inside of freed 2456-byte region [ffff88803f799480, ffff88803f799e18) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3f798 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88801dd88401 anon flags: 0x100000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0100000000000040 ffff888008c4bc80 0000000000000000 dead000000000001 raw: 0000000000000000 00000000000c000c 00000000f5000000 ffff88801dd88401 head: 0100000000000040 ffff888008c4bc80 0000000000000000 dead000000000001 head: 0000000000000000 00000000000c000c 00000000f5000000 ffff88801dd88401 head: 0100000000000003 ffffea0000fde601 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88803f799d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803f799d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88803f799e00: fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88803f799e80: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ffff88803f799f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== random: crng reseeded on system resumption Restarting kernel threads ... Done restarting kernel threads. random: crng reseeded on system resumption Restarting kernel threads ... Done restarting kernel threads.