Patch "kernel: kcsan: kcsan_test: build without structleak plugin" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    kernel: kcsan: kcsan_test: build without structleak plugin

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     kernel-kcsan-kcsan_test-build-without-structleak-plu.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 0750f19e829df59a44aa66d8476fa2b5608f0352
Author: Anders Roxell <anders.roxell@xxxxxxxxxx>
Date:   Mon Nov 28 11:43:58 2022 +0100

    kernel: kcsan: kcsan_test: build without structleak plugin
    
    [ Upstream commit 6fcd4267a840d0536b8e5334ad5f31e4105fce85 ]
    
    Building kcsan_test with structleak 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>
    Stable-dep-of: 5eb39cde1e24 ("kcsan: avoid passing -g for test")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/kernel/kcsan/Makefile b/kernel/kcsan/Makefile
index 4f35d1bced6a2..8cf70f068d92d 100644
--- a/kernel/kcsan/Makefile
+++ b/kernel/kcsan/Makefile
@@ -17,4 +17,5 @@ KCSAN_INSTRUMENT_BARRIERS_selftest.o := y
 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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux