Skip to content

Commit 005e696

Browse files
a13xp0p0vkees
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent 4877846 commit 005e696

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ obj-$(CONFIG_WATCH_QUEUE) += watch_queue.o
125125

126126
obj-$(CONFIG_SYSCTL_KUNIT_TEST) += sysctl-test.o
127127

128+
CFLAGS_stackleak.o += $(DISABLE_STACKLEAK_PLUGIN)
128129
obj-$(CONFIG_GCC_PLUGIN_STACKLEAK) += stackleak.o
129130
KASAN_SANITIZE_stackleak.o := n
130131
KCSAN_SANITIZE_stackleak.o := n

0 commit comments

Comments
 (0)