kasan_poison(9)
π kasan_poison(9) β Kernel API Manual π
β¨ NAME β¨
kasan_poison β mark the memory range as inaccessible. that's the whole vibe: it's the function that slaps the βnope, not accessibleβ label on a memory range, and honestly? iconic. π
π¦ SYNOPSIS π¦
okay so the signature is literally this, bestie β copy it exactly:
void kasan_poison (const void *addr , size_t size , u8 value , bool init
);
πΈ ARGUMENTS πΈ
addrβ range start address, and it must be aligned toKASAN_GRANULE_SIZE. no cap, alignment is not optional here.sizeβ range size, and it must be aligned toKASAN_GRANULE_SIZE. same energy asaddr, fr fr.valueβ value that's written to metadata for the range. that's the exact tea. πinitβ whether to initialize the memory range (only for hardware tag-based). yes, that parenthetical is part of the lore. β¨
π SEE ALSO π
Kernel file ./mm/kasan/kasan.h is right there in the mix, plus the besties kasan_check_range(9), kasan_unpoison(9), and kasan_poison_last_granule(9). iykyk π
okay that's the whole page, ily β source/version ./mm/kasan, date October 2026, mwah πβ¨
π¦ 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