From 941f5d281a7f3900e291771815b3e7b86d788304 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Tue, 13 Feb 2018 16:01:48 +0100 Subject: kernelconfig: reason: enable SCHED_STACK_END_CHECK This option checks for a stack overrun on calls to schedule(). If the stack end location is found to be over written always panic as the content of the corrupted region can no longer be trusted. This is to ensure no erroneous behaviour occurs which could result in data corruption or a sporadic crash at a later stage once the region is examined. The runtime overhead introduced is minimal. Signed-off-by: Michael Olbrich --- configs/platform-v7a/kernelconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configs') diff --git a/configs/platform-v7a/kernelconfig b/configs/platform-v7a/kernelconfig index 1c39aea..9149a94 100644 --- a/configs/platform-v7a/kernelconfig +++ b/configs/platform-v7a/kernelconfig @@ -2977,7 +2977,7 @@ CONFIG_PANIC_TIMEOUT=-1 # CONFIG_SCHED_DEBUG is not set # CONFIG_SCHED_INFO is not set # CONFIG_SCHEDSTATS is not set -# CONFIG_SCHED_STACK_END_CHECK is not set +CONFIG_SCHED_STACK_END_CHECK=y # CONFIG_DEBUG_TIMEKEEPING is not set CONFIG_DEBUG_PREEMPT=y -- cgit v1.2.3