add_random_kstack_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 πŸ‘‘


πŸ’– xoxo, that's the whole page β€” source ./include/linux, dated October 2026, for add_random_kstack_offset(9). πŸ’–

πŸ“¦ where this page comes from