Skip to content

Commit 8031d1f

Browse files
arndbherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent aa96951 commit 8031d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/wp512.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ static const u64 rc[WHIRLPOOL_ROUNDS] = {
779779
* The core Whirlpool transform.
780780
*/
781781

782-
static void wp512_process_buffer(struct wp512_ctx *wctx) {
782+
static __no_kmsan_checks void wp512_process_buffer(struct wp512_ctx *wctx) {
783783
int i, r;
784784
u64 K[8]; /* the round key */
785785
u64 block[8]; /* mu(buffer) */

0 commit comments

Comments
 (0)