The patch titled Subject: kernel: kcsan: kcsan_test: build without structleak plugin has been added to the -mm mm-nonmm-unstable branch. Its filename is kernel-kcsan-kcsan_test-build-without-structleak-plugin.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/kernel-kcsan-kcsan_test-build-without-structleak-plugin.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Anders Roxell <anders.roxell@xxxxxxxxxx> Subject: kernel: kcsan: kcsan_test: build without structleak plugin Date: Mon, 28 Nov 2022 11:43:58 +0100 Building kcsan_test with strucleak plugin enabled makes the stack frame size to grow. kernel/kcsan/kcsan_test.c:704:1: error: the frame size of 3296 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] Turn off the structleak plugin checks for kcsan_test. Link: https://lkml.kernel.org/r/20221128104358.2660634-1-anders.roxell@xxxxxxxxxx Signed-off-by: Anders Roxell <anders.roxell@xxxxxxxxxx> Suggested-by: Arnd Bergmann <arnd@xxxxxxxx> Acked-by: Marco Elver <elver@xxxxxxxxxx> Cc: Arnd Bergmann <arnd@xxxxxxxx> Cc: David Gow <davidgow@xxxxxxxxxx> Cc: Jason A. Donenfeld <Jason@xxxxxxxxx> Cc: Kees Cook <keescook@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/kcsan/Makefile | 1 + 1 file changed, 1 insertion(+) --- a/kernel/kcsan/Makefile~kernel-kcsan-kcsan_test-build-without-structleak-plugin +++ a/kernel/kcsan/Makefile @@ -17,4 +17,5 @@ KCSAN_INSTRUMENT_BARRIERS_selftest.o := obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer +CFLAGS_kcsan_test.o += $(DISABLE_STRUCTLEAK_PLUGIN) obj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o _ Patches currently in -mm which might be from anders.roxell@xxxxxxxxxx are kernel-kcsan-kcsan_test-build-without-structleak-plugin.patch