kasan_unpoison(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to kasan_unpoison(9) from the Kernel API Manual β€” this page is literally about marking memory as accessible πŸ’–.

kasan_unpoison β€” mark the memory range as accessible βœ…


✨ SYNOPSIS ✨

here's the exact signature, no edits, no cap:

void kasan_unpoison (const void *addr , size_t size , bool init );

πŸŽ€ ARGUMENTS πŸŽ€

okay so the args are giving very specific, bestie:

  • addr β€” range start address, and it must be aligned to KASAN_GRANULE_SIZE πŸ’…
  • size β€” range size, and it can be unaligned, no stress ✨
  • init β€” whether to initialize the memory range (only for hardware tag-based) πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜•: for the tag-based modes, the size gets aligned to KASAN_GRANULE_SIZE before the range gets marked β€” slay. For the generic mode, the last granule of the memory range gets partially unpoisoned based on the size, periodt πŸ’«.


🌈 SEE ALSO 🌈

go be nosy, bestie β€” the squad is right here:


mwah πŸ’‹ this lil page comes from ./mm/kasan, dated October 2026, and it's literally kasan_unpoison(9). periodt πŸŽ€

πŸ“¦ where this page comes from