kasan_check_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

kasan_check_range(9) πŸ’…

okay so we're in the Kernel API Manual, and this page is literally kasan_check_range(9). Bestie, it's giving "vibe check for memory regions" β€” it checks a memory region and reports if the access is invalid. No cap. ✨


🌸 NAME 🌸

kasan_check_range β€” check memory region, and report if invalid access. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

bool kasan_check_range (const void *addr , size_t size , bool write ,
       unsigned long ret_ip );

πŸŽ€ ARGUMENTS πŸŽ€

  • addr β€” the accessed address πŸ“
  • size β€” the accessed size πŸ“
  • write β€” true if access is a write access ✍️
  • ret_ip β€” return address 🫢

⭐ RETURN ⭐

true if access was valid, false if invalid. periodt. πŸ’…


🌈 SEE ALSO 🌈

Kernel file ./mm/kasan/kasan.h, plus the iconic crew: kasan_poison(9), kasan_unpoison(9), and kasan_poison_last_granule(9). iykyk πŸ”₯


mwah πŸ’‹ this page came from ./mm/kasan, dated October 2026, and it's kasan_check_range(9) β€” bye bestie 🫢

πŸ“¦ where this page comes from