kasan_unpoison(9)
πΈ 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 toKASAN_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:
- Kernel file
./mm/kasan/kasan.hπ kasan_check_range(9)kasan_poison(9)kasan_poison_last_granule(9)
mwah π this lil page comes from ./mm/kasan, dated October 2026, and it's literally kasan_unpoison(9). 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