summaryrefslogtreecommitdiffstats
path: root/crypto/sha3_generic.c
diff options
context:
space:
mode:
authorEric Biggers2019-05-20 18:47:19 +0200
committerHerbert Xu2019-05-30 09:28:40 +0200
commite944eab37a72bf171647d691dda4614f7151191f (patch)
tree5197a7c1a4621ad0c41c1c1f8ca88e5eb255ad3a /crypto/sha3_generic.c
parentcrypto: vmx - convert to skcipher API (diff)
downloadkernel-qcow2-linux-e944eab37a72bf171647d691dda4614f7151191f.tar.gz
kernel-qcow2-linux-e944eab37a72bf171647d691dda4614f7151191f.tar.xz
kernel-qcow2-linux-e944eab37a72bf171647d691dda4614f7151191f.zip
crypto: testmgr - fix length truncation with large page size
On PowerPC with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y, there is sometimes a crash in generate_random_aead_testvec(). The problem is that the generated test vectors use data lengths of up to about 2 * PAGE_SIZE, which is 128 KiB on PowerPC; however, the data length fields in the test vectors are 'unsigned short', so the lengths get truncated. Fix this by changing the relevant fields to 'unsigned int'. Fixes: 40153b10d91c ("crypto: testmgr - fuzz AEADs against their generic implementation") Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/sha3_generic.c')
0 files changed, 0 insertions, 0 deletions