From patchwork Sun Dec 4 11:54:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 86445 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1026594qgi; Sun, 4 Dec 2016 03:54:19 -0800 (PST) X-Received: by 10.98.65.156 with SMTP id g28mr52925457pfd.110.1480852459703; Sun, 04 Dec 2016 03:54:19 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m6si11158844pgg.171.2016.12.04.03.54.19; Sun, 04 Dec 2016 03:54:19 -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 S1751082AbcLDLyS (ORCPT + 1 other); Sun, 4 Dec 2016 06:54:18 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:38657 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750867AbcLDLyS (ORCPT ); Sun, 4 Dec 2016 06:54:18 -0500 Received: by mail-wm0-f50.google.com with SMTP id f82so53682289wmf.1 for ; Sun, 04 Dec 2016 03:54:17 -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=LPdJg8xaQVWYfcojfUoWV9a58XxWMMSHJlrxHKUc4opUJ3N7KDpR2k2oF14o+HK6Yn QbpGvjjQs/tuiPqXSkYGSGNcOzsPamsIN1rCE9IThmgelmwtixPEbxDSj6pWvPvQvj8v SUOkY9wZeAQQ/HgmZN2iP4Jv0doD2pFD78lnM= 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=GPWQRP9lAtMA+B2B+1J99S3gPdz/MlJ7neidv598eiNOf18C3YalGZbHBtwGo/nkus TewfTdIna/6EYuN/RvCmaIJn7KnmZsOGjHdg+hyOGeJsb7UUgrdyxEPevnTj3R1B9Sya 3l1xHBBzrxXpMGZapy0DQbMFkX6/9G4BO+ocS1FaDBotzTMsNyzDoHoIVNOMtcT/U0ZR VcT8Kp0MZueABAW0PVjBMiWvfleEBLwrgyyEtwynsydkWcENB6ZLmzKYiNNFkBvWlhCc v2nXa/P/cBi4dN73MPlN9h/uBaNv8iF6FLNl8c4UZvZBJzSir9CJvltU9MZ+zANFgC3w S6yQ== X-Gm-Message-State: AKaTC00VfNvKE6j6UQp5IJd4nr0YQdu0aEHT0ZRwkVvU6QI7esig6Ugslv52/4g/qBKYKGd8 X-Received: by 10.28.24.67 with SMTP id 64mr4700564wmy.136.1480852456507; Sun, 04 Dec 2016 03:54:16 -0800 (PST) Received: from localhost.localdomain ([105.144.52.243]) by smtp.gmail.com with ESMTPSA id i132sm12678625wmf.14.2016.12.04.03.54.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Dec 2016 03:54:15 -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 v2 1/6] crypto: testmgr - avoid overlap in chunked tests Date: Sun, 4 Dec 2016 11:54:02 +0000 Message-Id: <1480852447-25082-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480852447-25082-1-git-send-email-ard.biesheuvel@linaro.org> References: <1480852447-25082-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