]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
crypto: testmgr - avoid overlap in chunked tests
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 5 Dec 2016 18:42:23 +0000 (18:42 +0000)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 05:34:25 +0000 (21:34 -0800)
Orabug: 25243093

The IDXn offsets are chosen such that tap values (which may go up to
255) end up overlapping in the xbuf allocation. In particular, IDX1
and IDX3 are too close together, so update IDX3 to avoid this issue.

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

index fae546cd60aff9eb853e729e1f2c6189365693ed..2c12e42c25d8127b9ff2f59abaf41a9281a49410 100644 (file)
@@ -54,7 +54,7 @@ int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
  */
 #define IDX1           32
 #define IDX2           32400
-#define IDX3           1
+#define IDX3           511
 #define IDX4           8193
 #define IDX5           22222
 #define IDX6           17101