Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux

Pull crypto library fix from Eric Biggers:
"Fix an uninitialized variable in the s390 optimized SHA-1 and SHA-2.

Note that my librarification changes also fix this by greatly
simplifying how the s390 optimized SHA code is integrated. However, we
need this separate fix for 6.16 and older versions"

* tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux:
crypto: s390/sha - Fix uninitialized variable in SHA-1 and SHA-2

+5
+2
arch/s390/crypto/sha1_s390.c
··· 38 38 sctx->state[4] = SHA1_H4; 39 39 sctx->count = 0; 40 40 sctx->func = CPACF_KIMD_SHA_1; 41 + sctx->first_message_part = 0; 41 42 42 43 return 0; 43 44 } ··· 61 60 sctx->count = ictx->count; 62 61 memcpy(sctx->state, ictx->state, sizeof(ictx->state)); 63 62 sctx->func = CPACF_KIMD_SHA_1; 63 + sctx->first_message_part = 0; 64 64 return 0; 65 65 } 66 66
+3
arch/s390/crypto/sha512_s390.c
··· 32 32 ctx->count = 0; 33 33 ctx->sha512.count_hi = 0; 34 34 ctx->func = CPACF_KIMD_SHA_512; 35 + ctx->first_message_part = 0; 35 36 36 37 return 0; 37 38 } ··· 58 57 59 58 memcpy(sctx->state, ictx->state, sizeof(ictx->state)); 60 59 sctx->func = CPACF_KIMD_SHA_512; 60 + sctx->first_message_part = 0; 61 61 return 0; 62 62 } 63 63 ··· 99 97 ctx->count = 0; 100 98 ctx->sha512.count_hi = 0; 101 99 ctx->func = CPACF_KIMD_SHA_512; 100 + ctx->first_message_part = 0; 102 101 103 102 return 0; 104 103 }