kmsan_unpoison_entry_regs(9)
π kmsan_unpoison_entry_regs β Kernel API Manual π
okay so bestie, welcome to the kmsan_unpoison_entry_regs page, it's a little one but she's iconic β¨ this lives in the Kernel API Manual, and honestly it's giving "short but crucial" energy π
πΈ NAME πΈ
kmsan_unpoison_entry_regs β handle pt_regs in low-level entry code π
β¨ SYNOPSIS β¨
void kmsan_unpoison_entry_regs (const struct pt_regs *regs );
π¦ ARGUMENTS π¦
regsβ astruct pt_regspointer that you got straight from assembly code, no cap π«Ά
π DESCRIPTION π
so basically, KMSAN unpoisons the contents of the pt_regs you pass in, and the whole point of that is to stop potential false positive reports from happening π she's out here clearing the vibes so the error detector doesn't start drama over nothing, periodt.
and here's the main character detail π₯ β unlike kmsan_unpoison_memory, this function kmsan_unpoison_entry_regs can be called from the regions where kmsan_in_runtime returns true, which is literally the case in early entry code. so like, she's the one you call when you're in the no-go zone and the regular function can't come with you π iykyk.
ngl, that runtime restriction is the whole reason this function exists separately β don't try to swap in kmsan_unpoison_memory and hope for the best, she will not survive early entry code π
π SEE ALSO π
kernel file ./include/linux/kmsan.h, plus the whole friend group π:
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_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_get_metadata(9)kmsan_enable_current(9)kmsan_disable_current(9)memset_no_sanitize_memory(9)
and that's the whole page bestie, you ate that π this lil drop came from ./include/linux and is dated October 2026 β mwah, see you in the next manpage ππ§β
π¦ 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