From 2e0095a99c11008c412d9b318721250c2bd0808b Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Tue, 30 Apr 2019 10:45:48 -0700 Subject: [PATCH] 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 --- kernel/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/Kconfig b/kernel/Kconfig index aa1f4bc3bf3..15901baff22 100644 --- a/kernel/Kconfig +++ b/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