summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-08-07 22:29:04 +0200
committerKees Cook <keescook@chromium.org>2017-08-07 22:29:04 +0200
commitad05e6ca7b5fcf15ff178da662035ec7718f938c (patch)
treef4857cd9389a826a2c56a73b798cbe1bb269b81b /arch
parentrandstruct: Enable function pointer struct detection (diff)
parentgcc-plugins: structleak: add option to init all vars used as byref args (diff)
downloadlinux-ad05e6ca7b5fcf15ff178da662035ec7718f938c.tar.xz
linux-ad05e6ca7b5fcf15ff178da662035ec7718f938c.zip
Merge branch 'for-next/gcc-plugin/structleak' into for-next/gcc-plugins
Diffstat (limited to 'arch')
-rw-r--r--arch/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/Kconfig b/arch/Kconfig
index 4ada3209146a..596f0e66e69f 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -458,6 +458,13 @@ config GCC_PLUGIN_STRUCTLEAK
* https://grsecurity.net/
* https://pax.grsecurity.net/
+config GCC_PLUGIN_STRUCTLEAK_BYREF_ALL
+ bool "Force initialize all struct type variables passed by reference"
+ depends on GCC_PLUGIN_STRUCTLEAK
+ help
+ Zero initialize any struct type local variable that may be passed by
+ reference without having been initialized.
+
config GCC_PLUGIN_STRUCTLEAK_VERBOSE
bool "Report forcefully initialized variables"
depends on GCC_PLUGIN_STRUCTLEAK