diff options
Diffstat (limited to 'arch/sh/Kconfig')
-rw-r--r-- | arch/sh/Kconfig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index ed2419f7afe..98405fa24e8 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -695,6 +695,20 @@ config SECCOMP | |||
695 | 695 | ||
696 | If unsure, say N. | 696 | If unsure, say N. |
697 | 697 | ||
698 | config CC_STACKPROTECTOR | ||
699 | bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)" | ||
700 | depends on SUPERH32 && EXPERIMENTAL | ||
701 | help | ||
702 | This option turns on the -fstack-protector GCC feature. This | ||
703 | feature puts, at the beginning of functions, a canary value on | ||
704 | the stack just before the return address, and validates | ||
705 | the value just before actually returning. Stack based buffer | ||
706 | overflows (that need to overwrite this return address) now also | ||
707 | overwrite the canary, which gets detected and the attack is then | ||
708 | neutralized via a kernel panic. | ||
709 | |||
710 | This feature requires gcc version 4.2 or above. | ||
711 | |||
698 | config SMP | 712 | config SMP |
699 | bool "Symmetric multi-processing support" | 713 | bool "Symmetric multi-processing support" |
700 | depends on SYS_SUPPORTS_SMP | 714 | depends on SYS_SUPPORTS_SMP |