add_random_kstack_offset(9)
πΈ add_random_kstack_offset(9) πΈ
okay bestie, welcome to the Kernel API Manual, section 9 β this is the add_random_kstack_offset page and it's giving kernel-internals realness. π«Ά
π NAME π
add_random_kstack_offset β Increase stack utilization by a random offset. periodt. π
β¨ SYNOPSIS β¨
add_random_kstack_offset
π¦ DESCRIPTION π¦
okay so this should be used in the syscall entry path after user registers have been stored to the stack. π§
Preemption may be enabled. β
For testing the resulting entropy, please see: tools/testing/selftests/lkdtm/stack-entropy.sh β that's the path, bestie. π₯
π SEE ALSO π
- Kernel file
./include/linux/randomize_kstack.h add_random_kstack_offset_irqsoff(9)
π xoxo, that's the whole page β source ./include/linux, dated October 2026, for add_random_kstack_offset(9). π
π¦ 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