kernel-hardening.lists.openwall.com archive mirror
 help / color / mirror / Atom feed
* [kernel-hardening] [PATCH v2 0/3] Introduce GCC plugin infrastructure
@ 2016-02-11 22:36 Emese Revfy
  2016-02-11 22:39 ` [kernel-hardening] [PATCH v2 1/3] " Emese Revfy
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Emese Revfy @ 2016-02-11 22:36 UTC (permalink / raw)
  To: linux-kbuild; +Cc: pageexec, spender, kernel-hardening, mmarek, keescook, linux

This patch set introduce the GCC plugin infrastructure with examples for testing
and documentation.

GCC plugins are loadable modules that provide extra features to the compiler.
They are useful for runtime instrumentation and static analysis.

The infrastructure supports all gcc versions from 4.5 to 6.0, building
out-of-tree modules and building in a separate directory. Cross-compilation
is supported too but currently only the x86 architecture enables plugins.

This infrastructure was ported from grsecurity/PaX. It is a CII project
supported by the Linux Foundation.

Emese Revfy (3):
 GCC plugin infrastructure
 Add Cyclomatic complexity plugin
 Documentations of the GCC plugin infrastructre

Changes from v1:
 * Move the gcc-plugins make target into a separate Makefile because there may
   be a lot of plugins (Suggested-by: Rasmus Villemoes)
 * Simplify the dependencies of the plugin related config option
   (Suggested-by: Kees Cook)
 * Removed the unnecessary example plugin

---
 Documentation/dontdiff            |   1 +
 Documentation/gcc-plugins.txt     |  68 ++++
 Makefile                          |  41 +-
 arch/Kconfig                      |  24 ++
 arch/x86/Kconfig                  |   1 +
 init/Makefile                     |   3 +
 scripts/Makefile.build            |   2 +-
 scripts/Makefile.clean            |   3 +-
 scripts/Makefile.gcc-plugins      |  30 ++
 scripts/Makefile.host             |  69 +++-
 scripts/gcc-plugin.sh             |  51 +++
 scripts/link-vmlinux.sh           |   2 +-
 scripts/package/builddeb          |   1 +
 tools/gcc/Makefile                |  19 +
 tools/gcc/cyc_complexity_plugin.c | 120 ++++++
 tools/gcc/gcc-common.h            | 794 ++++++++++++++++++++++++++++++++++++++
 16 files changed, 1214 insertions(+), 15 deletions(-)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-02-18 22:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-11 22:36 [kernel-hardening] [PATCH v2 0/3] Introduce GCC plugin infrastructure Emese Revfy
2016-02-11 22:39 ` [kernel-hardening] [PATCH v2 1/3] " Emese Revfy
2016-02-18  0:18   ` [kernel-hardening] " Kees Cook
2016-02-18 21:21     ` Emese Revfy
2016-02-11 22:41 ` [kernel-hardening] [PATCH v2 2/3] Add Cyclomatic complexity GCC plugin Emese Revfy
2016-02-18  0:27   ` [kernel-hardening] " Kees Cook
2016-02-18 21:32     ` Emese Revfy
2016-02-11 22:43 ` [kernel-hardening] [PATCH v2 3/3] Documentation for the GCC plugin infrastructure Emese Revfy
2016-02-18  0:35   ` [kernel-hardening] " Kees Cook
2016-02-18 22:13     ` Emese Revfy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).