kmsan_slab_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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