kmsan_check_memory(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

kmsan_check_memory β€” check the memory range for being initialized πŸ’…

Basically, this is the Kernel API Manual's little vibe-check function, and it wants to know one thing: is this chunk of memory actually initialized or not? πŸ‘‘


🌸 SYNOPSIS 🌸

void kmsan_check_memory (const void *address , size_t size );

πŸŽ€ ARGUMENTS πŸŽ€

  • address β€” the address to start with, bestie. Like, where the range begins πŸ“
  • size β€” size of buffer to check. Yep, that's how much we're looking at 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea: if any piece of the given range is marked as uninitialized, KMSAN will report an error. Not me being dramatic β€” that's literally what it does 😭πŸ”₯

Like, every single bit of that range gets checked, and the moment something's uninitialized in there, it's giving error report energy πŸ’€βœ¨


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/linux/kmsan-checks.h β€” and these iconic functions right here:


That's the whole page, no cap 🌈 This cutie lives under ./include/linux, and it's dated October 2026 β€” so yeah, mark your calendars, bestie πŸŽ€πŸ’–

πŸ“¦ where this page comes from