summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2025-11-22 11:53:53 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2025-11-22 11:53:53 -0800
commit0629dcf772e66ff9b81822af0e29ae2c7d03068f (patch)
treecf8f330a19409421f542e96305f376977db6c8bb /lib
parent89edd36fd801efdb3d2f38bbf7791a293c24bb45 (diff)
parent141fbbecec0e71fa6b35d08c7d3dba2f9853a4ee (diff)
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 another KMSAN warning that made it in while KMSAN wasn't working reliably" * tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux: lib/crypto: tests: Fix KMSAN warning in test_sha256_finup_2x()
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto/tests/sha256_kunit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/crypto/tests/sha256_kunit.c b/lib/crypto/tests/sha256_kunit.c
index dcedfca06df6..5dccdee79693 100644
--- a/lib/crypto/tests/sha256_kunit.c
+++ b/lib/crypto/tests/sha256_kunit.c
@@ -68,6 +68,7 @@ static void test_sha256_finup_2x(struct kunit *test)
rand_bytes(data1_buf, max_data_len);
rand_bytes(data2_buf, max_data_len);
rand_bytes(salt, sizeof(salt));
+ memset(ctx, 0, sizeof(*ctx));
for (size_t i = 0; i < 500; i++) {
size_t salt_len = rand_length(sizeof(salt));