]> Git Repo - linux.git/commitdiff
lib: fortify_kunit: build without structleak plugin
authorAnders Roxell <[email protected]>
Mon, 28 Nov 2022 10:44:03 +0000 (02:44 -0800)
committerKees Cook <[email protected]>
Fri, 2 Dec 2022 21:04:44 +0000 (13:04 -0800)
Building allmodconfig with aarch64-linux-gnu-gcc (Debian 11.3.0-6),
fortify_kunit with strucleak plugin enabled makes the stack frame size
to grow too large:

lib/fortify_kunit.c:140:1: error: the frame size of 2368 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]

Turn off the structleak plugin checks for fortify_kunit.

Suggested-by: Arnd Bergmann <[email protected]>
Signed-off-by: Anders Roxell <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
lib/Makefile

index 2f0454b931dc8c5df8921093d04f944180d44b2b..83c650bb4459f6a7336739ac5910494341841fce 100644 (file)
@@ -379,6 +379,7 @@ obj-$(CONFIG_OVERFLOW_KUNIT_TEST) += overflow_kunit.o
 CFLAGS_stackinit_kunit.o += $(call cc-disable-warning, switch-unreachable)
 obj-$(CONFIG_STACKINIT_KUNIT_TEST) += stackinit_kunit.o
 CFLAGS_fortify_kunit.o += $(call cc-disable-warning, unsequenced)
+CFLAGS_fortify_kunit.o += $(DISABLE_STRUCTLEAK_PLUGIN)
 obj-$(CONFIG_FORTIFY_KUNIT_TEST) += fortify_kunit.o
 obj-$(CONFIG_STRSCPY_KUNIT_TEST) += strscpy_kunit.o
 obj-$(CONFIG_SIPHASH_KUNIT_TEST) += siphash_kunit.o
This page took 0.055678 seconds and 4 git commands to generate.