File tree Expand file tree Collapse file tree 5 files changed +0
-153
lines changed Expand file tree Collapse file tree 5 files changed +0
-153
lines changed Original file line number Diff line number Diff line change @@ -2153,18 +2153,12 @@ config ARCH_HAS_KCOV
2153
2153
build and run with CONFIG_KCOV. This typically requires
2154
2154
disabling instrumentation for some early boot code.
2155
2155
2156
- config CC_HAS_SANCOV_TRACE_PC
2157
- def_bool $(cc-option,-fsanitize-coverage=trace-pc)
2158
-
2159
-
2160
2156
config KCOV
2161
2157
bool "Code coverage for fuzzing"
2162
2158
depends on ARCH_HAS_KCOV
2163
- depends on CC_HAS_SANCOV_TRACE_PC || GCC_PLUGINS
2164
2159
depends on !ARCH_WANTS_NO_INSTR || HAVE_NOINSTR_HACK || \
2165
2160
GCC_VERSION >= 120000 || CC_IS_CLANG
2166
2161
select DEBUG_FS
2167
- select GCC_PLUGIN_SANCOV if !CC_HAS_SANCOV_TRACE_PC
2168
2162
select OBJTOOL if HAVE_NOINSTR_HACK
2169
2163
help
2170
2164
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)
38
38
39
39
# Some plugins are enabled outside of this Makefile, but they still need to
40
40
# be included in GCC_PLUGIN so they can get built.
41
- gcc-plugin-external-$(CONFIG_GCC_PLUGIN_SANCOV) \
42
- += sancov_plugin.so
43
41
gcc-plugin-external-$(CONFIG_GCC_PLUGIN_RANDSTRUCT) \
44
42
+= randomize_layout_plugin.so
45
43
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: GPL-2.0-only
2
2
kcov-flags-$(CONFIG_CC_HAS_SANCOV_TRACE_PC) += -fsanitize-coverage=trace-pc
3
3
kcov-flags-$(CONFIG_KCOV_ENABLE_COMPARISONS) += -fsanitize-coverage=trace-cmp
4
- kcov-flags-$(CONFIG_GCC_PLUGIN_SANCOV) += -fplugin=$(objtree)/scripts/gcc-plugins/sancov_plugin.so
5
4
6
5
export CFLAGS_KCOV := $(kcov-flags-y)
Original file line number Diff line number Diff line change @@ -19,16 +19,6 @@ menuconfig GCC_PLUGINS
19
19
20
20
if GCC_PLUGINS
21
21
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 <
[email protected] >.
31
-
32
22
config GCC_PLUGIN_LATENT_ENTROPY
33
23
bool "Generate some entropy during boot and runtime"
34
24
help
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments