|
|
Subscribe / Log in / New account

gcc-plugins: structleak: Generalize to all variable types

From:  Kees Cook <keescook-AT-chromium.org>
To:  linux-kernel-AT-vger.kernel.org
Subject:  [PATCH 0/2] gcc-plugins: structleak: Generalize to all variable types
Date:  Tue, 12 Feb 2019 10:04:39 -0800
Message-ID:  <20190212180441.15340-1-keescook@chromium.org>
Cc:  Kees Cook <keescook-AT-chromium.org>, Emese Revfy <re.emese-AT-gmail.com>, Alexander Popov <alex.popov-AT-linux.com>, Ard Biesheuvel <ard.biesheuvel-AT-linaro.org>, Laura Abbott <labbott-AT-redhat.com>, Jann Horn <jannh-AT-google.com>, Alexander Potapenko <glider-AT-google.com>, kernel-hardening-AT-lists.openwall.com
Archive-link:  Article

Instead of a new plugin for stack initialization[1], this improves
structleak to handle initialization of all variable types. Since the
instrumentation happens at a different point, the "switch" statement
changes from the earlier posting[2] are no longer needed. As before,
this also introduces a stack initialization regression testing module to
validate various kinds of stack variable usage vs compiler instrumentation
for initialization. See the individual patches for more details.

Thanks!

-Kees

[1] https://lkml.kernel.org/r/CA+55aFykZL+cSBJjBBts7ebEFfyGPd...
[2] https://lkml.kernel.org/r/20190123110349.35882-1-keescook...

Kees Cook (2):
  gcc-plugins: structleak: Generalize to all variable types
  lib: Introduce test_stackinit module

 lib/Kconfig.debug                       |  10 +
 lib/Makefile                            |   1 +
 lib/test_stackinit.c                    | 378 ++++++++++++++++++++++++
 scripts/Makefile.gcc-plugins            |   2 +
 scripts/gcc-plugins/Kconfig             |  58 +++-
 scripts/gcc-plugins/structleak_plugin.c |  36 ++-
 6 files changed, 463 insertions(+), 22 deletions(-)
 create mode 100644 lib/test_stackinit.c

-- 
2.17.1



Copyright © 2019, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds