summaryrefslogtreecommitdiffstats
path: root/arch/csky/Kconfig
diff options
context:
space:
mode:
authorMao Han <han_mao@c-sky.com>2019-10-11 04:56:55 +0200
committerGuo Ren <guoren@linux.alibaba.com>2020-02-21 08:43:24 +0100
commit2f78c73f78c39dabc5c44ad8dd61fd6ec65636d6 (patch)
treeb9ba43f4bb9d709d612c77b3ed4c260a204a2d38 /arch/csky/Kconfig
parentMAINTAINERS: csky: Add mailing list for csky (diff)
downloadlinux-2f78c73f78c39dabc5c44ad8dd61fd6ec65636d6.tar.xz
linux-2f78c73f78c39dabc5c44ad8dd61fd6ec65636d6.zip
csky: Initial stack protector support
This is a basic -fstack-protector support without per-task canary switching. The protector will report something like when stack corruption is detected: It's tested with strcpy local array overflow in sys_kill and get: stack-protector: Kernel stack is corrupted in: sys_kill+0x23c/0x23c TODO: - Support task switch for different cannary Signed-off-by: Mao Han <han_mao@c-sky.com> Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'arch/csky/Kconfig')
-rw-r--r--arch/csky/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/csky/Kconfig b/arch/csky/Kconfig
index da09c884cc30..ea7f3b890d03 100644
--- a/arch/csky/Kconfig
+++ b/arch/csky/Kconfig
@@ -49,6 +49,7 @@ config CSKY
select HAVE_PERF_USER_STACK_DUMP
select HAVE_DMA_API_DEBUG
select HAVE_DMA_CONTIGUOUS
+ select HAVE_STACKPROTECTOR
select HAVE_SYSCALL_TRACEPOINTS
select MAY_HAVE_SPARSE_IRQ
select MODULES_USE_ELF_RELA if MODULES