gcc-plugin updates for v5.1-rc1
Hi Linus,
Please pull these gcc-plugin changes for v5.1-rc1. This adds additional type coverage to the existing structleak plugin and adds a large set of selftests to help evaluate stack variable zero-initialization coverage (which can be used to test whatever instrumentation might be performing
zero-initialization: either with the structleak plugin or with Clang's coming "-ftrivial-auto-var-init=zero" option).
Note that there is a minor conflict seen in linux-next with KASAN changes in -mm, which removes the !KASAN_EXTRA depends from structleak. sfr's resolution is correct:
https://lkml.kernel.org/r/[email protected]
Thanks!
-Kees
The following changes since commit 49a57857aeea06ca831043acbb0fa5e0f50602fd:
Linux 5.0-rc3 (2019-01-21 13:14:44 +1300)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/gcc-plugins-v5.1-rc1
for you to fetch changes up to 50ceaa95ea09703722b30b4afa617c972071cd7f:
lib: Introduce test_stackinit module (2019-03-04 09:29:52 -0800)
----------------------------------------------------------------
increased structleak coverage
- And scalar and array initialization coverage
- Refactor Kconfig to make options more clear
- Add self-test module for testing automatic initialization
----------------------------------------------------------------
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
Signature · 1 line
Kees Cook
The pull request you sent on Mon, 4 Mar 2019 09:48:02 -0800:
The pull request you sent on Mon, 4 Mar 2019 09:48:02 -0800:
Quoted 1 line
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/gcc-plugins-v5.1-rc1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/2bb995405fe52dd893db57456556e8dc4fce35a7
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.wiki.kernel.org/userdoc/prtracker