Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2969500pxb; Tue, 12 Jan 2021 03:10:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlQVzqmS0TVEuiJBOL49k2chyq/vFamw/4lUrqxgOVNelI56H/OY0QyIZoHjqjLOPXIDvh X-Received: by 2002:a50:d4d9:: with SMTP id e25mr2976393edj.243.1610449853954; Tue, 12 Jan 2021 03:10:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610449853; cv=none; d=google.com; s=arc-20160816; b=yXmRqE7Uyjh8358XgcUj+uHlvoNVdjb3PPKrFJGCVpMK0S5C2Hrsn+TFlPUlOk6pbS YjTu6nfKGUc+sqbE2FHuV9jFv5iCRpHHmMgKKqEJ56RQwyQAnKuxs3DtkItopAnvbI8+ sHQiaVUzkfeOVZMdBd6aXBpcHi2UhLWPtMuFDwh+pTKWNQXmIV4qV4mWGoFJ6aH17Kbb ptyeSdBAPXOB7czP7mKgpSXKnpB9+XetEwTszorLXuqoi36rFN5QUF/l8M3z+gbHMdJ+ u9GamxMMSUQmsDDrd+tQG3ixNhVAwvozy9lSnUb25jSQl441LziBBZBEwXvgCXDZeDzt tvrA== 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=Db6UueaN/+RSAW6s0FX898oyfgOTV6utqe+CUYCp0wg=; b=BUlScbfqeGxbx4EhSycqXPD3mmPrwcbQP5XqyIxefuU+fWpK1+l63SVpJGNL13hl8e EgVNtL0pEM35cyZXqvf1x487gPfiE/WRDgpu1HA31z0dBvZmNt/CyKJzBNTT23VmSy5J mrXYbnSsdYyE+TtVvoZpf+nW/qcKB4iPf5FXZEEf3S3AKnykdvkTQf2A1QCocBotOMK/ xTxvKkrSBrSdVsharalumpU1YaojBu/piG+YGSmH/x8sxI28yk5ll7NF8R2/I2js/y4a iFOfQtpsjmqCVoPMZD+mBQoIfTzRtCL2DF3wmQDdwgXvwiqOYbxS/sue30xGqmcO6d1d EOgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j5fe8wXQ; 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 c7si1146221edr.193.2021.01.12.03.10.33; Tue, 12 Jan 2021 03:10:53 -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=j5fe8wXQ; 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 S1733026AbhALDG2 (ORCPT + 99 others); Mon, 11 Jan 2021 22:06:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731989AbhALDG2 (ORCPT ); Mon, 11 Jan 2021 22:06:28 -0500 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C18EC061786 for ; Mon, 11 Jan 2021 19:05:47 -0800 (PST) Received: by mail-qt1-x82a.google.com with SMTP id a6so742540qtw.6 for ; Mon, 11 Jan 2021 19:05:47 -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=Db6UueaN/+RSAW6s0FX898oyfgOTV6utqe+CUYCp0wg=; b=j5fe8wXQ4sOgA0VRFLhBnrUkBl4/VGaDzDaxxX5MwXAHuSyr1/qYO+/hLkHDQSgBbB rraG8Zw761QqmWdpSuJYruoMJRVyawk1zu5EiGEDcrJXxz4c7fiNV53hwzERSoWgtgwm m5VDJX8J5Vv8sBbxOy0Rm5FhOkvBjNZ5tFGqjobpAXh7CLm4kOTazH2pp+b+XypxAafH zEcIYAt++0PxFzh1CFfxF/0Ig0MsMkbUMU7RpSYh3ZuYIktlhMnln7N3dXfWJ4fhZEHb SQALrHExGLlFFYiS60BYNazBnnL2ycaqR2NL5FE1UDK7eQ2JNnPV0nlMh38iUSt1LngV 1kJA== 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=Db6UueaN/+RSAW6s0FX898oyfgOTV6utqe+CUYCp0wg=; b=oWJu/LCcUrGb++L1PuVVma8RAIRSuMXFhEvO8MQUs9sfv9TqHosdGvVkPrs7oYql7I b/cy78+gleawFaTEX7sRX5Osl1m1A5ApNujTwk4cL/shV5oRvJeAVHnbAz10h82s01bY 3xKI489jWe38BH/h6EgnWGWPiVtpDVAfAhw9Vz0W58kz/JhlzdyfYO7obcGFvrBuBwYC QPa/h1w75Lf2Y7FSWaEghV8ed+I01XEQLJa/fhfoWRlDk6nUH+fgzWlgRyqSwC827wyf zHrrGzuWALBzxVnl8rrOOjPaEdkNhuX57Lzon2HShgxg0dgZNSX8oYj/RzkQij0xl69K nb9Q== X-Gm-Message-State: AOAM532jOrHjryb7rwLWT3Gp+YRBUU4sSEvx7Ssh/0ZYHNalCTk8lSeA GZzDMjuy+XX5+RizNlNLgshDlA== X-Received: by 2002:ac8:6e83:: with SMTP id c3mr2703904qtv.318.1610420746584; Mon, 11 Jan 2021 19:05:46 -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 c7sm814235qkm.99.2021.01.11.19.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 19:05:46 -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 v2 0/6] Regression fixes/clean ups in the Qualcomm crypto engine driver Date: Mon, 11 Jan 2021 22:05:39 -0500 Message-Id: <20210112030545.669480-1-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. v1->v2: - Introduced custom struct qce_sha_saved_state to store and restore partial sha transformation. - Rebased to 5.11-rc3. Thara Gopinath (6): drivers: crypto: qce: sha: Restore/save ahash state with custom struct 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 | 143 +++++++++++++--------------------- drivers/crypto/qce/skcipher.c | 70 ++++++++++++++--- 5 files changed, 127 insertions(+), 115 deletions(-) -- 2.25.1