From patchwork Mon Dec 5 18:42:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 86615 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1635679qgi; Mon, 5 Dec 2016 10:42:40 -0800 (PST) X-Received: by 10.84.217.216 with SMTP id d24mr128034347plj.10.1480963360250; Mon, 05 Dec 2016 10:42:40 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r64si15593544pfa.128.2016.12.05.10.42.40; Mon, 05 Dec 2016 10:42:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751581AbcLESmj (ORCPT + 1 other); Mon, 5 Dec 2016 13:42:39 -0500 Received: from mail-wj0-f169.google.com ([209.85.210.169]:32911 "EHLO mail-wj0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751320AbcLESmj (ORCPT ); Mon, 5 Dec 2016 13:42:39 -0500 Received: by mail-wj0-f169.google.com with SMTP id xy5so298608690wjc.0 for ; Mon, 05 Dec 2016 10:42:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eHo15Z/x65zVLNsK8k/+MfnY7RJ8a+tSzgYYhkGZyJ0=; b=VBHPrAUkzQlUt3BDaYpPRE1YgPb/ZfFJdwUc2FCbuO61my0LZ0Lg5M1ZrM8VFJRbHl uSV2xHTvE2q83GwmdCiKmdGnM9rCu2Q8BrbAD7z2dvo7le+Qp1TEhGk5iqeyhsNj1RHd sgIDxM+hXcJ8br75caFdXDsgcWsWZ0w59QDhk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eHo15Z/x65zVLNsK8k/+MfnY7RJ8a+tSzgYYhkGZyJ0=; b=ZFNrlBNyxZzSjBbvMbHmxJfE0bKD+pizxjGUd//bc8KgiZS6y/pDmxKMZsm5+lS+Y5 Q/5DeLWmKpZEH8jUmxQ54s9CKGDR5pxmBe2oSNrWSgdoX1HUm3xMXrSr1fDt7AY+j3UZ wvpwqwILQReOfdmeKjZ19gjRB6HsxpuB7rKTrrSwJkpCUdmTqykQiKGTOHpncynwfsux KtcS2r0bw+n76uBQaIuXnCr7hfg2FlJQxhuU7n1RwdOJqy+NM4FdwFQoRCXnznTGFZ2M jeiA0La/1IODHE2KaLsbMxZJKDAj1u66r4yWl2Kr45qu/BKjsfz2BtPHgUMz8xpvTa9i zAQg== X-Gm-Message-State: AKaTC01AeBJd/5CRFK022Z5QyUZRTtIVjdmowqR4CjG8bEbE5OFl+rzZYJFWVnyq6b1Sg4+V X-Received: by 10.194.174.39 with SMTP id bp7mr50431568wjc.5.1480963357510; Mon, 05 Dec 2016 10:42:37 -0800 (PST) Received: from localhost.localdomain ([105.144.52.243]) by smtp.gmail.com with ESMTPSA id yj10sm21774213wjb.3.2016.12.05.10.42.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Dec 2016 10:42:36 -0800 (PST) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au Cc: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel Subject: [PATCH v3 1/6] crypto: testmgr - avoid overlap in chunked tests Date: Mon, 5 Dec 2016 18:42:23 +0000 Message-Id: <1480963348-24203-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480963348-24203-1-git-send-email-ard.biesheuvel@linaro.org> References: <1480963348-24203-1-git-send-email-ard.biesheuvel@linaro.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.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 --- crypto/testmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/crypto/testmgr.c b/crypto/testmgr.c index ded50b67c757..670893bcf361 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -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 1 +#define IDX3 511 #define IDX4 8193 #define IDX5 22222 #define IDX6 17101