================================================================== BUG: KASAN: slab-use-after-free in flush_tlb_func+0x24d/0x560 Write of size 8 at addr ffff888037da8980 by task swapper/0/0 CPU: 0 UID: 0 PID: 0 Comm: swapper/0 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 rest_init+0x164/0x290 start_kernel+0x3f9/0x510 x86_64_start_reservations+0x18/0x30 x86_64_start_kernel+0x109/0x120 common_startup_64+0x13e/0x148 Allocated by task 25518: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 __kasan_slab_alloc+0x59/0x70 kmem_cache_alloc_noprof+0x13c/0x470 copy_process+0x6f3a/0x73e0 kernel_clone+0xea/0x820 __do_sys_clone+0xce/0x120 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 26029: 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 mmput+0x305/0x390 do_exit+0x79d/0x2970 do_group_exit+0xd3/0x2a0 __x64_sys_exit_group+0x3e/0x50 x64_sys_call+0xf76/0x18a0 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888037da8000 which belongs to the cache mm_struct of size 2456 The buggy address is located 2432 bytes inside of freed 2456-byte region [ffff888037da8000, ffff888037da8998) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37da8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff8880379b9381 anon flags: 0x100000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0100000000000040 ffff888008c4bc80 0000000000000000 dead000000000001 raw: 0000000000000000 00000000000c000c 00000000f5000000 ffff8880379b9381 head: 0100000000000040 ffff888008c4bc80 0000000000000000 dead000000000001 head: 0000000000000000 00000000000c000c 00000000f5000000 ffff8880379b9381 loop5: detected capacity change from 0 to 8192 head: 0100000000000003 ffffea0000df6a01 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888037da8880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888037da8900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888037da8980: fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888037da8a00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff888037da8a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== loop5: detected capacity change from 0 to 8192 loop5: detected capacity change from 0 to 8192 loop2: detected capacity change from 0 to 8192 Bluetooth: hci7: command 0x0406 tx timeout