From patchwork Sat Dec 19 03:30:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 345963 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp2710202jai; Fri, 18 Dec 2020 19:32:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiQ3X+v6xIK6PLOC9IQbXp2RjdENy6VSRAsZs/Cg6SH4oz7fnQhW/89vztCZnsZu66eaLy X-Received: by 2002:a50:b243:: with SMTP id o61mr7498936edd.57.1608348730297; Fri, 18 Dec 2020 19:32:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608348730; cv=none; d=google.com; s=arc-20160816; b=dIe4Il9g5XAuBoHS8Ytgwij7Ny95iwBSlezihiBn1QX855fsKr7oetGujjQBxnh9Ks EZIkKEi4Rh6bmX6svTKNkzGZzAoyht2AL85kFk8Wnlrk2q8vtHZGVw1DKNoCLS5HsNzK zkgJJcu19J9QcQx2OFwey+KGgt8F4L/EgjuGOuCHwT0YbFtwboPPKf3CV0PNdY0VCYPV DXgaKvm4sEdi5mt7XIuv2eS77KU/3+5lygF6QGieK/QbD63qk6BYUKSZaqj70NT39SCv QtUBK26toxLF54zhADe0r+//iBsvhuN5YWNyGEsHJvf2VqmBiwdDdAWVeernrYBNC/Kf JpWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mhZcFwLFRD+URmub2//MI05HplvVJx4QbRaR8OH4h8M=; b=EUW8lKDo3REpWBjyJfWqgFnZ7W/a7Kmrpa2WtBbilcZcsQDr+gyLrnMNvRPU6sHzDo enKLpSGIYOktOPlpTHH3Jo1hT4NwjUQDWporIIbBQ9RcnNOcRzC972v5TJpymXSBxjjy vCJulcpMtKWMNVvtEUljbI8nqi2nO0VawC5VANAui5q19RFCQ+sCye0erTbBrXjSPoiB nNFOJGqSWccwY0t/Xt1np6jv0CR8eUXNomhYt+DX9tguXM1ZGZguwcvfmYUMhXMatkh3 if+UV5xO4RPq81iooUoLoPfGAI6cauN883n2vcB0oylID8CYhM9dyKcL3XsmFclCIw3c aqNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kNMDArYG; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si7383558eds.424.2020.12.18.19.32.09; Fri, 18 Dec 2020 19:32:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kNMDArYG; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726254AbgLSDbK (ORCPT + 2 others); Fri, 18 Dec 2020 22:31:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726145AbgLSDbK (ORCPT ); Fri, 18 Dec 2020 22:31:10 -0500 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1702C0617B0 for ; Fri, 18 Dec 2020 19:30:29 -0800 (PST) Received: by mail-qk1-x735.google.com with SMTP id 143so4117512qke.10 for ; Fri, 18 Dec 2020 19:30: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:mime-version :content-transfer-encoding; bh=mhZcFwLFRD+URmub2//MI05HplvVJx4QbRaR8OH4h8M=; b=kNMDArYGKcAQi1SqMcKucSUTa8jSF29GBvUP02lPMlTvlfkN8CBTGQs7kzVz62Jmp4 k2Yl+c1rQGM8a42aABnObYOLZoOgUAHk2kGEAr5UOZJzJJZ1JzsoyOVvsNgifgarEnKW DSzXc47S36ZwyRrADIcfuiEJF/H7aMcSDhKJnF/nB+gFNOPIIFPpGINfFV9ybF1fj2vc GvJj3fuClRh7gAEB3iS4LjNViO/gZFeSmaHg2QcV0l7jtMKdi46yC6PWgbxh4aCJvaTb XC/EZdQ1xuKtdDTjdalX2Zjx96LhHA/0vRFSffwiaxXyQil6xB6TczkSZ5Dv6IU1AXbO EADw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mhZcFwLFRD+URmub2//MI05HplvVJx4QbRaR8OH4h8M=; b=mQumqZVeR3Gpl4j9wS8guO2T/bFgzxfr3rkrbSDJP7MxVrDJSvmHI08rdWYWX3PMtL 84iuxfojb6qLKEOTWTgFJDUTMXmLZcsv6+1JFuBrQ60Y+FRmfPb/L8fg+1QJOwgikEhU 2bUZm6H8wpJQcmUhwL7Hp52bjc27nul/ef7GvIUWngBKJbxa1wgcBAw7uTemwP6slFsC doAHOCmOFkP/OlI1ilOFxks+YA3SV3xv8+LtmgdwNS+QpEvSkLbN2W9WfCmIdXtztJzr xUPiJK0SQN9qsobz9EWcxFFVIBvuMcCJb8jJJRg9LzFgVKIakqR9FNEeQLPccykquvW2 q/Yw== X-Gm-Message-State: AOAM533Av3q9nCu1y7GzkezfVZ7JICg6ykY/aQ2KiU4gPAfzTj+WMAF6 L04PqlCLZy02giMIosFR6FPBOA== X-Received: by 2002:a37:a893:: with SMTP id r141mr8268623qke.459.1608348628917; Fri, 18 Dec 2020 19:30:28 -0800 (PST) Received: from pop-os.fios-router.home (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.googlemail.com with ESMTPSA id y16sm4376045qki.132.2020.12.18.19.30.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Dec 2020 19:30:28 -0800 (PST) From: Thara Gopinath To: herbert@gondor.apana.org.au, davem@davemloft.net, bjorn.andersson@linaro.org Cc: ebiggers@google.com, ardb@kernel.org, sivaprak@codeaurora.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] Regression fixes/clean ups in the Qualcomm crypto engine driver Date: Fri, 18 Dec 2020 22:30:21 -0500 Message-Id: <20201219033027.3066042-1-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This patch series is a result of running kernel crypto fuzz tests (by enabling CONFIG_CRYPTO_MANAGER_EXTRA_TESTS) on the transformations currently supported via the Qualcomm crypto engine on sdm845. The first four patches are fixes for various regressions found during testing. The last two patches are minor clean ups of unused variable and parameters. Thara Gopinath (6): drivers: crypto: qce: sha: Restore/save sha1_state/sha256_state with qce_sha_reqctx in export/import drivers: crypto: qce: sha: Hold back a block of data to be transferred as part of final drivers: crypto: qce: skcipher: Fix regressions found during fuzz testing drivers: crypto: qce: common: Set data unit size to message length for AES XTS transformation drivers: crypto: qce: Remover src_tbl from qce_cipher_reqctx drivers: crypto: qce: Remove totallen and offset in qce_start drivers/crypto/qce/cipher.h | 1 - drivers/crypto/qce/common.c | 25 ++++---- drivers/crypto/qce/common.h | 3 +- drivers/crypto/qce/sha.c | 114 +++++++++------------------------- drivers/crypto/qce/skcipher.c | 70 ++++++++++++++++++--- 5 files changed, 101 insertions(+), 112 deletions(-) -- 2.25.1