kmsan_init_shadow(9)
π kmsan_init_shadow β Kernel API Manual β¨
okay so bestie, welcome to the kmsan_init_shadow(9)</p> page π this one lives in the Kernel API Manual and honestly? it's a short one, but it's lowkey iconic.
πΈ NAME πΈ
kmsan_init_shadow β bestie, this is the one that initializes the KMSAN shadow at boot time. that's it. that's the whole gig π
β¨ SYNOPSIS β¨
void kmsan_init_shadow (void );
like, that's the entire signature. no parameters, no drama, no crumbs. periodt π
π¦ ARGUMENTS π¦
voidβ no arguments. zero. none. nothing. not a single little guy gets passed in here π
π₯ DESCRIPTION π₯
so what's she actually doing? she allocates and initializes the KMSAN metadata that's needed for early allocations. that's the vibe β the early-boot era needs its metadata set up, and this function is the one who shows up and does it β¨
no cap, that's the entire description. sometimes the main character energy is just doing your one job correctly π
π SEE ALSO π
okay this is where it pops off, because the crossover episode is LONG. go check these out, fr fr:
- the kernel file
./include/linux/kmsan.hπ kmsan_task_create(9)kmsan_task_exit(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_slab_free(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)
that's the whole friend group and honestly they all ate π
ngl, if you're reading this page you're probably deep in kernel sanitizer territory, and honestly? slay. that's a flex π«Ά
so yeah β this page is brought to you by the source/version ./include/linux, dated October 2026 β mwah, hope that helped, toodles bestie πππ
π¦ 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