[PATCH 0/3] Kconfig: Refactor memory initialization hardening

From: Kees Cook
Date: Wed Apr 10 2019 - 12:16:38 EST


This is a proposed alternative for the memory initialization series,
which refactoring the existing gcc plugins into a separate Kconfig
file and collects all the related options together with some more
language to describe their differences. The last patch adds the
Clang auto init option, as done by Alexander Potapenko.

Since there isn't really a good way to "select" with dependencies,
I've left out CONFIG_INIT_ALL_MEMORY for the moment...

-Kees

Kees Cook (3):
Kconfig: Create "kernel hardening" config area
kbuild: Move stackleak config to Kconfig.hardening
kbuild: Implement Clang's stack initialization

Makefile | 5 ++
scripts/gcc-plugins/Kconfig | 121 +-------------------------
security/Kconfig | 2 +
security/Kconfig.hardening | 165 ++++++++++++++++++++++++++++++++++++
4 files changed, 175 insertions(+), 118 deletions(-)
create mode 100644 security/Kconfig.hardening

--
2.17.1