[PATCH 0/3] gcc-plugins/stackleak: Ignore .noinstr.text and .entry.text

Kees Cook posted 3 patches 4 years, 4 months ago
scripts/Makefile.gcc-plugins           |  2 ++
scripts/gcc-plugins/stackleak_plugin.c | 29 ++++++++++++++++++++++----
security/Kconfig.hardening             | 10 +++++++++
3 files changed, 37 insertions(+), 4 deletions(-)
[PATCH 0/3] gcc-plugins/stackleak: Ignore .noinstr.text and .entry.text
Posted by Kees Cook 4 years, 4 months ago
Out of an abundance of caution, do not perform stack depth analysis on
.noinstr.text and .entry.text section functions, as it may be possible
that "current" is not sane.

Additionally, to verify results, the verbose mode is wired up the Kconfig,
and the string matching is refactored for correctness.

-Kees

Kees Cook (3):
  gcc-plugins/stackleak: Provide verbose mode
  gcc-plugins/stackleak: Exactly match strings instead of prefixes
  gcc-plugins/stackleak: Ignore .noinstr.text and .entry.text

 scripts/Makefile.gcc-plugins           |  2 ++
 scripts/gcc-plugins/stackleak_plugin.c | 29 ++++++++++++++++++++++----
 security/Kconfig.hardening             | 10 +++++++++
 3 files changed, 37 insertions(+), 4 deletions(-)

-- 
2.30.2