summaryrefslogtreecommitdiff
path: root/crypto/wp512.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2022-12-15 17:29:38 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2022-12-30 22:56:27 +0800
commit107683ef5bf3d6b3c88a4535f56200149abb0a04 (patch)
treeadbe6db633edc3f43dca560f66bde1b01b3d3c75 /crypto/wp512.c
parent68bb36fa552984e7c8e5a177e21b485115483d8f (diff)
downloadlinux-crypto-107683ef5bf3d6b3c88a4535f56200149abb0a04.tar.gz
linux-crypto-107683ef5bf3d6b3c88a4535f56200149abb0a04.zip
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 <arnd@arndb.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--crypto/wp512.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/wp512.c b/crypto/wp512.c
index 5e820afa..07994e5e 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) */