kcsan_set_access_mask(9)
π kcsan_set_access_mask β the kcsan(9) girlies are gonna eat this up
okay so bestie, welcome to the kcsan_set_access_mask page of the Kernel API Manual β¨ it's short, it's sweet, it's literally one function, and yes we're gonna make it iconic anyway π
πΈ NAME πΈ
kcsan_set_access_mask β set access mask. that's it. that's the whole name. short king behavior fr fr π«Ά
β¨ SYNOPSIS β¨
void kcsan_set_access_mask (unsigned long mask );
like, look at her. void return, takes one unsigned long, no notes. main character energy honestly π
π¦ ARGUMENTS π¦
maskβ a bitmask. yes bestie, that's the entire description, the manpage is not gonna elaborate, so neither am I π it's a bitmask. bits. masked. slay.
π DESCRIPTION π
okay so here's the tea β β kcsan_set_access_mask sets the access mask for all accesses in the current context, but only if the mask is non-zero. zero? nothing happens. we love a conditional π
and then the actual reporting rule, which is the important part so pay attention bestie π: only value changes to bits set in the mask will be reported.
read that again. bits set in the mask. that's the whole vibe check. if a bit isn't in your mask, its changes are simply not the moment π
ngl this is the kind of thing where getting the mask wrong means you're silently not seeing reports, so like... double check your bits, bestie π
π₯ SEE ALSO π₯
the whole kcsan friend group showed up, no cap π
- Kernel file
./include/linux/kcsan-checks.h __kcsan_check_access(9)__kcsan_mb(9)__kcsan_wmb(9)__kcsan_rmb(9)__kcsan_release(9)kcsan_disable_current(9)kcsan_enable_current(9)kcsan_nestable_atomic_begin(9)kcsan_nestable_atomic_end(9)kcsan_flat_atomic_begin(9)kcsan_flat_atomic_end(9)kcsan_atomic_next(9)kcsan_begin_scoped_access(9)kcsan_end_scoped_access(9)__kcsan_check_read(9)__kcsan_check_write(9)__kcsan_check_read_write(9)kcsan_check_read(9)kcsan_check_write(9)kcsan_check_read_write(9)ASSERT_EXCLUSIVE_WRITER(9)ASSERT_EXCLUSIVE_WRITER_SCOPED(9)ASSERT_EXCLUSIVE_ACCESS(9)ASSERT_EXCLUSIVE_ACCESS_SCOPED(9)ASSERT_EXCLUSIVE_BITS(9)
and that's the page!! π this lil beauty lives in ./include/linux, and it's dated October 2026 β so like, future icon behavior honestly β go read the rest of the kcsan girls, they're all linked above, ily, bye ππ§π
π¦ 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