From: Hauke Mehrtens Date: Sat, 22 Apr 2023 17:36:22 +0000 (+0200) Subject: kernel: Activate CONFIG_SCHED_STACK_END_CHECK X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1f41b6bb83a528a67934c5504094903afff7ab15;p=openwrt%2Fstaging%2Fblocktrron.git kernel: Activate CONFIG_SCHED_STACK_END_CHECK This activates the CONFIG_SCHED_STACK_END_CHECK option. The kernel will check if the kernel stack overflowed in the schedule() function. This just adds a very small computational overhead. This option is activated in Debian by default. Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/generic/config-5.10 b/target/linux/generic/config-5.10 index 5b2aad99c3..9645072a55 100644 --- a/target/linux/generic/config-5.10 +++ b/target/linux/generic/config-5.10 @@ -5017,7 +5017,7 @@ CONFIG_SCHED_HRTICK=y # CONFIG_SCHED_MC is not set CONFIG_SCHED_OMIT_FRAME_POINTER=y # CONFIG_SCHED_SMT is not set -# CONFIG_SCHED_STACK_END_CHECK is not set +CONFIG_SCHED_STACK_END_CHECK=y # CONFIG_SCHED_TRACER is not set # CONFIG_SCR24X is not set # CONFIG_SCSI is not set diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15 index eae1adb5dd..3d5a860673 100644 --- a/target/linux/generic/config-5.15 +++ b/target/linux/generic/config-5.15 @@ -5274,7 +5274,7 @@ CONFIG_SCHED_HRTICK=y # CONFIG_SCHED_MC is not set CONFIG_SCHED_OMIT_FRAME_POINTER=y # CONFIG_SCHED_SMT is not set -# CONFIG_SCHED_STACK_END_CHECK is not set +CONFIG_SCHED_STACK_END_CHECK=y # CONFIG_SCHED_TRACER is not set # CONFIG_SCR24X is not set # CONFIG_SCSI is not set