aboutsummaryrefslogtreecommitdiffstats
path: root/arch/Kconfig
diff options
context:
space:
mode:
authorEmese Revfy <re.emese@gmail.com>2016-05-23 18:11:37 -0400
committerMichal Marek <mmarek@suse.com>2016-06-07 16:57:10 -0400
commit543c37cb165049c3be24a0d4733e67caa2b33eef (patch)
tree91f3e0bb972a6283b607da394268e7e5872292b5 /arch/Kconfig
parent0dae776c6bf31e779c172753f6e2d6426eb42523 (diff)
Add sancov plugin
The sancov gcc plugin inserts a __sanitizer_cov_trace_pc() call at the start of basic blocks. This plugin is a helper plugin for the kcov feature. It supports all gcc versions with plugin support (from gcc-4.5 on). It is based on the gcc commit "Add fuzzing coverage support" by Dmitry Vyukov (https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=231296). Signed-off-by: Emese Revfy <re.emese@gmail.com> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'arch/Kconfig')
-rw-r--r--arch/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/Kconfig b/arch/Kconfig
index 04ca45262ad1..05f1e95b796d 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -384,6 +384,15 @@ config GCC_PLUGIN_CYC_COMPLEXITY
384 N = the number of nodes 384 N = the number of nodes
385 P = the number of connected components (exit nodes). 385 P = the number of connected components (exit nodes).
386 386
387config GCC_PLUGIN_SANCOV
388 bool
389 depends on GCC_PLUGINS
390 help
391 This plugin inserts a __sanitizer_cov_trace_pc() call at the start of
392 basic blocks. It supports all gcc versions with plugin support (from
393 gcc-4.5 on). It is based on the commit "Add fuzzing coverage support"
394 by Dmitry Vyukov <dvyukov@google.com>.
395
387config HAVE_CC_STACKPROTECTOR 396config HAVE_CC_STACKPROTECTOR
388 bool 397 bool
389 help 398 help