From aa91113af7a51fc615db05d1d4daa70b720aeb21 Mon Sep 17 00:00:00 2001 From: David Leach Date: Tue, 12 Nov 2019 16:02:05 -0600 Subject: [PATCH] kernel: Kconfig: Define dependencies for STACK_CANARIES STACK_CANARIES relies on random value for the canarie so ENTROPY_GENERATOR or TEST_RANDOM_GENERATOR needs to be selected to get sys_rand32_get included in the build. Fixes: #20587 Signed-off-by: David Leach --- kernel/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/Kconfig b/kernel/Kconfig index fcc67613234..16c4fb62cfd 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -620,6 +620,7 @@ menu "Security Options" config STACK_CANARIES bool "Compiler stack canaries" + depends on ENTROPY_GENERATOR || TEST_RANDOM_GENERATOR help This option enables compiler stack canaries.