Skip to content

Commit

Permalink
crypto: testmgr - fix overlap in chunked tests again
Browse files Browse the repository at this point in the history
Commit 7e4c7f1 ("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>
  • Loading branch information
Ard Biesheuvel authored and herbertx committed Dec 8, 2016
1 parent d0a3431 commit 04b46fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/testmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
*/
#define IDX1 32
#define IDX2 32400
#define IDX3 511
#define IDX3 1511
#define IDX4 8193
#define IDX5 22222
#define IDX6 17101
Expand Down

0 comments on commit 04b46fb

Please sign in to comment.