kvfree_sensitive(9)
π NAME π
kvfree_sensitive (section 9) β free a data object containing sensitive information. okay bestie, welcome to the Kernel API Manual page for the βplease actually clear the sensitive stuffβ free-er. π
β¨ SYNOPSIS β¨
void kvfree_sensitive (const void *addr , size_t len );
πΈ ARGUMENTS πΈ
addrβ address of the data object to be freed. thatβs the thing youβre releasing, bestie. π«Άlenβ length of the data object. how many bytes, literally.
π¦ DESCRIPTION π¦
okay so hereβs the vibe: this uses the special memzero_explicit function to clear the content of a kvmalloc'ed object containing sensitive data. the whole point is to make sure that the compiler wonβt optimize out the data clearing. no cap, thatβs the important bit β the wipe has to survive the compilerβs whole βIβm helpingβ era. ππ₯
sensitive data is giving main character energy β this is the special clear, not just a casual free. π
π SEE ALSO π
the kernel besties in this group chat: Kernel file ./mm/slub.c enum slab_flags(9), kmem_cache_alloc_node(9), kmem_cache_free(9), ksize(9), kfree(9), kvfree(9), kvfree_atomic(9), kmem_cache_alloc_bulk(9). π
mwah π this little page lives in ./mm and is stamped October 2026 β 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