diff options
author | Marco Elver <[email protected]> | 2022-01-31 10:05:20 +0100 |
---|---|---|
committer | Kees Cook <[email protected]> | 2022-02-14 11:07:12 -0800 |
commit | 8cb37a5974a48569aab8a1736d21399fddbdbdb2 (patch) | |
tree | b7c766fc7e31649c8fabc0c53cefc6c278740ea1 /net/unix/af_unix.c | |
parent | ae978009fc013e3166c9f523f8b17e41a3c0286e (diff) |
stack: Introduce CONFIG_RANDOMIZE_KSTACK_OFFSET
The randomize_kstack_offset feature is unconditionally compiled in when
the architecture supports it.
To add constraints on compiler versions, we require a dedicated Kconfig
variable. Therefore, introduce RANDOMIZE_KSTACK_OFFSET.
Furthermore, this option is now also configurable by EXPERT kernels:
while the feature is supposed to have zero performance overhead when
disabled, due to its use of static branches, there are few cases where
giving a distribution the option to disable the feature entirely makes
sense. For example, in very resource constrained environments, which
would never enable the feature to begin with, in which case the
additional kernel code size increase would be redundant.
Signed-off-by: Marco Elver <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Kees Cook <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions