kmsan_slab_free(9)
π kmsan_slab_free π
okay so bestie, welcome to the Kernel API Manual β¨ β this little page is all about kmsan_slab_free, and it's gonna be quick but iconic. grab your strawberry drink π and let's go.
β¨ NAME β¨
kmsan_slab_free β the function that notifies KMSAN that a slab object is being deallocated π«Ά like, it's literally just the memo going out that this thing is gone.
πΈ SYNOPSIS πΈ
void kmsan_slab_free (struct kmem_cache *s , void *object );
that's it. two args. no cap. π
π ARGUMENTS π
sβ the slab cache the object belongs to π§ the object's home, basically.objectβ the object pointer itself π¦ yep, the pointer to the thing.
π DESCRIPTION π
so here's the vibe: KMSAN marks the freed object as uninitialized. that's the whole thing, bestie β that's the assignment and it ate ππ₯
π SEE ALSO π
the whole friend group is here, iykyk β¨ Kernel file ./include/linux/kmsan.h plus:
kmsan_task_create(9)kmsan_task_exit(9)kmsan_init_shadow(9)kmsan_init_runtime(9)kmsan_memblock_free_pages(9)kmsan_alloc_page(9)kmsan_free_page(9)kmsan_copy_page_meta(9)kmsan_slab_alloc(9)kmsan_kmalloc_large(9)kmsan_kfree_large(9)kmsan_ioremap_page_range(9)kmsan_iounmap_page_range(9)kmsan_handle_dma(9)kmsan_handle_dma_sg(9)kmsan_handle_urb(9)kmsan_unpoison_entry_regs(9)kmsan_get_metadata(9)kmsan_enable_current(9)kmsan_disable_current(9)memset_no_sanitize_memory(9)
okay that's the whole page, you understood it perfectly, main character energy only ππ mwah!
sign-off time π: this beauty comes from ./include/linux, dated October 2026, and it's the kmsan_slab_free(9) page β periodt. π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms