]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: testmgr - fix overlap in chunked tests again
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 8 Dec 2016 08:23:52 +0000 (08:23 +0000)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 05:34:26 +0000 (21:34 -0800)
commit1fb26ba64eacb10b0c225f1f034e44ef32812a15
treea57226c325a2e50341b612ba334aa1654ff3085b
parent5bd0714281683d638a0875cc55a3fdd1c97930b8
crypto: testmgr - fix overlap in chunked tests again

Orabug: 25243093

Commit 7e4c7f17cde2 ("crypto: testmgr - avoid overlap in chunked tests")
attempted to address a problem in the crypto testmgr code where chunked
test cases are copied to memory in a way that results in overlap.

However, the fix recreated the exact same issue for other chunked tests,
by putting IDX3 within 492 bytes of IDX1, which causes overlap if the
first chunk exceeds 492 bytes, which is the case for at least one of
the xts(aes) test cases.

So increase IDX3 by another 1000 bytes.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 04b46fbdea5e31ffd745a34fa61269a69ba9f47a)
Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
crypto/testmgr.c