From: ard.biesheuvel@linaro.org (Ard Biesheuvel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/4] crypto: testmgr - avoid overlap in chunked tests
Date: Thu, 24 Nov 2016 15:43:18 +0000 [thread overview]
Message-ID: <1480002201-1427-2-git-send-email-ard.biesheuvel@linaro.org> (raw)
In-Reply-To: <1480002201-1427-1-git-send-email-ard.biesheuvel@linaro.org>
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>
---
crypto/testmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 62dffa0028ac..15650597dcc9 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -62,7 +62,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
--
2.7.4
next prev parent reply other threads:[~2016-11-24 15:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-24 15:43 [PATCH 0/4] crypto: CRCT10DIF support for ARM and arm64 Ard Biesheuvel
2016-11-24 15:43 ` Ard Biesheuvel [this message]
2016-11-24 15:43 ` [PATCH 2/4] crypto: testmgr - add/enhance test cases for CRC-T10DIF Ard Biesheuvel
2016-11-24 15:43 ` [PATCH 3/4] crypto: arm64/crct10dif - port x86 SSE implementation to arm64 Ard Biesheuvel
2016-11-24 15:43 ` [PATCH 4/4] crypto: arm/crct10dif - port x86 SSE implementation to ARM Ard Biesheuvel
2016-11-24 17:32 ` Ard Biesheuvel
2016-11-28 13:17 ` Herbert Xu
2016-11-28 14:59 ` Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1480002201-1427-2-git-send-email-ard.biesheuvel@linaro.org \
--to=ard.biesheuvel@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).