diff options
author | Alexander Popov <alex.popov@linux.com> | 2020-06-24 14:33:26 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-06-24 16:48:13 +0200 |
commit | 005e696df65d0ff90468ecf38a50aa584dc82421 (patch) | |
tree | 9f9ed435be50ce3eee0f85eaacd0a74a8fe15ba3 /kernel/Makefile | |
parent | Linux 5.8-rc2 (diff) | |
download | linux-005e696df65d0ff90468ecf38a50aa584dc82421.tar.xz linux-005e696df65d0ff90468ecf38a50aa584dc82421.zip |
gcc-plugins/stackleak: Don't instrument itself
There is no need to try instrumenting functions in kernel/stackleak.c.
Otherwise that can cause issues if the cleanup pass of stackleak gcc plugin
is disabled.
Signed-off-by: Alexander Popov <alex.popov@linux.com>
Link: https://lore.kernel.org/r/20200624123330.83226-2-alex.popov@linux.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'kernel/Makefile')
-rw-r--r-- | kernel/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/Makefile b/kernel/Makefile index f3218bc5ec69..155b5380500a 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -125,6 +125,7 @@ obj-$(CONFIG_WATCH_QUEUE) += watch_queue.o obj-$(CONFIG_SYSCTL_KUNIT_TEST) += sysctl-test.o +CFLAGS_stackleak.o += $(DISABLE_STACKLEAK_PLUGIN) obj-$(CONFIG_GCC_PLUGIN_STACKLEAK) += stackleak.o KASAN_SANITIZE_stackleak.o := n KCSAN_SANITIZE_stackleak.o := n |