From: Arnd Bergmann Date: Thu, 15 Dec 2022 16:29:38 +0000 (+0100) Subject: crypto: wp512 - disable kmsan checks in wp512_process_buffer() X-Git-Tag: v6.3-rc1~163^2~149 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8031d1f678c2b06733c8f9028b413194b47c33ab;p=thirdparty%2Fkernel%2Flinux.git crypto: wp512 - disable kmsan checks in wp512_process_buffer() The memory sanitizer causes excessive register spills in this function: crypto/wp512.c:782:13: error: stack frame size (2104) exceeds limit (2048) in 'wp512_process_buffer' [-Werror,-Wframe-larger-than] Assume that this one is safe, and mark it as needing no checks to get the stack usage back down to the normal level. Signed-off-by: Arnd Bergmann Signed-off-by: Herbert Xu --- diff --git a/crypto/wp512.c b/crypto/wp512.c index 5e820afa3c785..07994e5ebf4ef 100644 --- a/crypto/wp512.c +++ b/crypto/wp512.c @@ -779,7 +779,7 @@ static const u64 rc[WHIRLPOOL_ROUNDS] = { * The core Whirlpool transform. */ -static void wp512_process_buffer(struct wp512_ctx *wctx) { +static __no_kmsan_checks void wp512_process_buffer(struct wp512_ctx *wctx) { int i, r; u64 K[8]; /* the round key */ u64 block[8]; /* mu(buffer) */