Commit 1628b73c authored by Anders Roxell's avatar Anders Roxell Committed by openeuler-sync-bot
Browse files

kernel: kcsan: kcsan_test: build without structleak plugin

stable inclusion
from stable-v5.10.177
commit 46ae204069e7d09b36413e71228820153419150e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=46ae204069e7d09b36413e71228820153419150e

--------------------------------

[ Upstream commit 6fcd4267 ]

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@linaro.org


Signed-off-by: default avatarAnders Roxell <anders.roxell@linaro.org>
Suggested-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarMarco Elver <elver@google.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: David Gow <davidgow@google.com>
Cc: Jason A. Donenfeld <Jason@zx2c4.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Stable-dep-of: 5eb39cde ("kcsan: avoid passing -g for test")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit 3f2daf56)
parent 725669c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment