summaryrefslogtreecommitdiffstats
path: root/configs/platform-rpi/kernelconfig
diff options
context:
space:
mode:
authorRoland Hieber <r.hieber@pengutronix.de>2018-11-15 10:58:18 +0100
committerRoland Hieber <r.hieber@pengutronix.de>2018-11-18 22:32:30 +0100
commita4467df5658adab85a69637b58a08973a0b59289 (patch)
tree3a732fbd2c290c09535db80f024e683f4b88947b /configs/platform-rpi/kernelconfig
parentd75038d624cb2d8a50602de6ad4657669ce79201 (diff)
downloadDistroKit-a4467df5658adab85a69637b58a08973a0b59289.tar.gz
DistroKit-a4467df5658adab85a69637b58a08973a0b59289.tar.xz
rpi: kernel: detect stack corruption when calling the scheduler
This option checks for a stack overrun on calls to schedule(). If the stack end location is found to be overwritten, 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: Roland Hieber <r.hieber@pengutronix.de>
Diffstat (limited to 'configs/platform-rpi/kernelconfig')
-rw-r--r--configs/platform-rpi/kernelconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/platform-rpi/kernelconfig b/configs/platform-rpi/kernelconfig
index 5f05594..65a09f7 100644
--- a/configs/platform-rpi/kernelconfig
+++ b/configs/platform-rpi/kernelconfig
@@ -3116,7 +3116,7 @@ CONFIG_PANIC_ON_OOPS_VALUE=0
CONFIG_PANIC_TIMEOUT=0
CONFIG_SCHED_DEBUG=y
# 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
#