From patchwork Thu Nov 24 15:43:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 83945 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp227636obn; Thu, 24 Nov 2016 07:44:34 -0800 (PST) X-Received: by 10.98.14.143 with SMTP id 15mr2931417pfo.11.1480002274762; Thu, 24 Nov 2016 07:44:34 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si15962642pgk.253.2016.11.24.07.44.34; Thu, 24 Nov 2016 07:44:34 -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 S966738AbcKXPoc (ORCPT + 1 other); Thu, 24 Nov 2016 10:44:32 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:36703 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966610AbcKXPo3 (ORCPT ); Thu, 24 Nov 2016 10:44:29 -0500 Received: by mail-wm0-f48.google.com with SMTP id g23so118685553wme.1 for ; Thu, 24 Nov 2016 07:44:29 -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=wYzTPQpc8bFjKfN/ZQ9LC2V8A56L1U8hgkpPvg5jiRQ=; b=LzMvZvBx1m82Wi+q09nw1ycw0c997Qa68wnWDtzw295bDUxn1stQ2TqqV2TctBtucP gfvxPy/HLcT8lZWb44zXs+1SSl+oL2rvSGTGVaMXSA7hfTTZxOqqKyYT8OCUMtTWKijP nB5U7KGL5zKTf7QaXEn56UV8KCUfGdD+H0oWY= 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=wYzTPQpc8bFjKfN/ZQ9LC2V8A56L1U8hgkpPvg5jiRQ=; b=UYEM8G9CS5/EKXU4sGUyIlA6XpqdPL6Q+mMH0JIepSRX2rLXHMFFJyvrXgbGSGjSq/ ua/fk+IcaSU76bYoJdk9Sq3K+EgljE4GBfDuCOB+qUKuHBdAt3NHO4IJcgrt8fSrrblj BoZQPxq+8dsBAzSca8h5rh+nfPUeqKi+3Sq9Dgs+hG/JpUOt1B5id34cxndBElOOh1Kv 2eLG+2oANCWUEL6XMJaiAvpVL2347qkEtkFbOZIbGvs0D4+2/SooSwjBdNWaOqkVeslJ Rw1/hBoDde2KuzNOzX4MmShk1nBzr9q8OMJUnG/XQLAhZwBSXvTJaycaIC0/ZrnVvvYA 06eQ== X-Gm-Message-State: AKaTC02JrmUUT9xHsPIa2pfMF0T75J5Qhuj9iYXg28CqQ5+nG9FjNkkGvwyk06IfwpKj5ZyK X-Received: by 10.28.109.2 with SMTP id i2mr2902128wmc.41.1480002268301; Thu, 24 Nov 2016 07:44:28 -0800 (PST) Received: from localhost.localdomain ([160.163.23.103]) by smtp.gmail.com with ESMTPSA id c187sm8813797wmd.13.2016.11.24.07.44.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Nov 2016 07:44:27 -0800 (PST) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, will.deacon@arm.com, linux@arm.linux.org.uk Cc: steve.capper@linaro.org, dingtianhong@huawei.com, yangshengkai@huawei.com, yuehaibing@huawei.com, hanjun.guo@linaro.org, Ard Biesheuvel Subject: [PATCH 1/4] crypto: testmgr - avoid overlap in chunked tests Date: Thu, 24 Nov 2016 15:43:18 +0000 Message-Id: <1480002201-1427-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480002201-1427-1-git-send-email-ard.biesheuvel@linaro.org> References: <1480002201-1427-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 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