projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4877846
)
gcc-plugins/stackleak: Don't instrument itself
author
Alexander Popov
<alex.popov@linux.com>
Wed, 24 Jun 2020 12:33:26 +0000
(15:33 +0300)
committer
Kees Cook
<keescook@chromium.org>
Wed, 24 Jun 2020 14:48:13 +0000
(07:48 -0700)
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>
kernel/Makefile
patch
|
blob
|
history
diff --git
a/kernel/Makefile
b/kernel/Makefile
index f3218bc5ec69fd99ff8d615ecabc102993136dc3..155b5380500ad1ae8bd076f9874d208b5a8ede42 100644
(file)
--- 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