From e64e3ad88ab612379747dff15b62573bda3f8de4 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 18 May 2014 08:56:52 -0500 Subject: [PATCH] kernel: only use DEBUG_STACKOVERFLOW if !grsecurity Signed-off-by: Austin Seipp --- pkgs/os-specific/linux/kernel/common-config.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 3f42787126d3..0bdc2766a691 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -16,7 +16,9 @@ with stdenv.lib; DEBUG_DEVRES n DEBUG_NX_TEST n DEBUG_STACK_USAGE n - DEBUG_STACKOVERFLOW n + ${optionalString (!(features.grsecurity or true)) '' + DEBUG_STACKOVERFLOW n + ''} RCU_TORTURE_TEST n SCHEDSTATS n DETECT_HUNG_TASK y