]> git.ipfire.org Git - thirdparty/linux.git/commit
lib: fortify_kunit: build without structleak plugin
authorAnders Roxell <anders.roxell@linaro.org>
Mon, 28 Nov 2022 10:44:03 +0000 (02:44 -0800)
committerKees Cook <keescook@chromium.org>
Fri, 2 Dec 2022 21:04:44 +0000 (13:04 -0800)
commit5abf698754b8e5e4f1ca1058ee2b9785fbce6d23
tree7a3de906938dd66c6834e4d3e1e984c7a41fb795
parent8b05aa26336113c4cea25f1c333ee8cd4fc212a6
lib: fortify_kunit: build without structleak plugin

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 <arnd@arndb.de>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
lib/Makefile