Skip to content
Permalink
Browse files

security: kernel: Fix STACK_POINTER_RANDOM dependency

STACK_POINTER_RANDOM depends on a random generator, this can be either a
non-random generator (used for testing purpose) or a real random
generator. Make this dependency explicitly in Kconfig to avoid linking
problems.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
  • Loading branch information...
ceolin authored and andrewboie committed Apr 30, 2019
1 parent 32d23cb commit 2e0095a99c11008c412d9b318721250c2bd0808b
Showing with 1 addition and 0 deletions.
  1. +1 −0 kernel/Kconfig
@@ -645,6 +645,7 @@ config EXECUTE_XOR_WRITE
config STACK_POINTER_RANDOM
int "Initial stack pointer randomization bounds"
depends on !STACK_GROWS_UP
depends on TEST_RANDOM_GENERATOR || ENTROPY_HAS_DRIVER
default 0
help
This option performs a limited form of Address Space Layout

0 comments on commit 2e0095a

Please sign in to comment.
You can’t perform that action at this time.