File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2153,18 +2153,12 @@ config ARCH_HAS_KCOV
21532153 build and run with CONFIG_KCOV. This typically requires
21542154 disabling instrumentation for some early boot code.
21552155
2156- config CC_HAS_SANCOV_TRACE_PC
2157- def_bool $(cc-option,-fsanitize-coverage=trace-pc)
2158-
2159-
21602156config KCOV
21612157 bool "Code coverage for fuzzing"
21622158 depends on ARCH_HAS_KCOV
2163- depends on CC_HAS_SANCOV_TRACE_PC || GCC_PLUGINS
21642159 depends on !ARCH_WANTS_NO_INSTR || HAVE_NOINSTR_HACK || \
21652160 GCC_VERSION >= 120000 || CC_IS_CLANG
21662161 select DEBUG_FS
2167- select GCC_PLUGIN_SANCOV if !CC_HAS_SANCOV_TRACE_PC
21682162 select OBJTOOL if HAVE_NOINSTR_HACK
21692163 help
21702164 KCOV exposes kernel code coverage information in a form suitable
Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ KBUILD_CFLAGS += $(GCC_PLUGINS_CFLAGS)
3838
3939# Some plugins are enabled outside of this Makefile, but they still need to
4040# be included in GCC_PLUGIN so they can get built.
41- gcc-plugin-external-$(CONFIG_GCC_PLUGIN_SANCOV) \
42- += sancov_plugin.so
4341gcc-plugin-external-$(CONFIG_GCC_PLUGIN_RANDSTRUCT) \
4442 += randomize_layout_plugin.so
4543
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: GPL-2.0-only
22kcov-flags-$(CONFIG_CC_HAS_SANCOV_TRACE_PC) += -fsanitize-coverage=trace-pc
33kcov-flags-$(CONFIG_KCOV_ENABLE_COMPARISONS) += -fsanitize-coverage=trace-cmp
4- kcov-flags-$(CONFIG_GCC_PLUGIN_SANCOV) += -fplugin=$(objtree)/scripts/gcc-plugins/sancov_plugin.so
54
65export CFLAGS_KCOV := $(kcov-flags-y)
Original file line number Diff line number Diff line change @@ -19,16 +19,6 @@ menuconfig GCC_PLUGINS
1919
2020if GCC_PLUGINS
2121
22- config GCC_PLUGIN_SANCOV
23- bool
24- # Plugin can be removed once the kernel only supports GCC 6+
25- depends on !CC_HAS_SANCOV_TRACE_PC
26- help
27- This plugin inserts a __sanitizer_cov_trace_pc() call at the start of
28- basic blocks. It supports all gcc versions with plugin support (from
29- gcc-4.5 on). It is based on the commit "Add fuzzing coverage support"
30- by Dmitry Vyukov <dvyukov@google.com>.
31-
3222config GCC_PLUGIN_LATENT_ENTROPY
3323 bool "Generate some entropy during boot and runtime"
3424 help
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments