From patchwork Wed Mar 23 15:06:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 8650831 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 22E459F44D for ; Wed, 23 Mar 2016 15:07:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4F15E2025B for ; Wed, 23 Mar 2016 15:07:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 76B7220259 for ; Wed, 23 Mar 2016 15:07:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932248AbcCWPG7 (ORCPT ); Wed, 23 Mar 2016 11:06:59 -0400 Received: from mail-bn1on0068.outbound.protection.outlook.com ([157.56.110.68]:35968 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932246AbcCWPG4 (ORCPT ); Wed, 23 Mar 2016 11:06:56 -0400 Received: from CH1PR03CA001.namprd03.prod.outlook.com (10.255.156.146) by SN1PR0301MB2047.namprd03.prod.outlook.com (10.163.226.156) with Microsoft SMTP Server (TLS) id 15.1.434.16; Wed, 23 Mar 2016 15:06:49 +0000 Received: from BN1BFFO11OLC001.protection.gbl (10.255.156.132) by CH1PR03CA001.outlook.office365.com (10.255.156.146) with Microsoft SMTP Server (TLS) id 15.1.434.16 via Frontend Transport; Wed, 23 Mar 2016 15:06:49 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11OLC001.mail.protection.outlook.com (10.58.145.12) with Microsoft SMTP Server (TLS) id 15.1.443.6 via Frontend Transport; Wed, 23 Mar 2016 15:06:49 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u2NF6gup031386; Wed, 23 Mar 2016 08:06:47 -0700 From: Tudor Ambarus To: , CC: , , , Tudor Ambarus Subject: [PATCH v2 2/2] crypto: qat - fix address leaking of RSA public exponent Date: Wed, 23 Mar 2016 17:06:40 +0200 Message-ID: <1458745600-1448-3-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1458745600-1448-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1458745600-1448-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131032192093504561; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(77096005)(19580405001)(2950100001)(19580395003)(86362001)(76176999)(81166005)(50986999)(50226001)(92566002)(85426001)(5003940100001)(104016004)(6806005)(87936001)(5008740100001)(5001770100001)(47776003)(1096002)(2906002)(229853001)(1220700001)(106466001)(586003)(33646002)(48376002)(50466002)(36756003)(11100500001)(4326007)(105606002)(189998001)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB2047; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC001; 1:M/AkDNRd0862vMLImz15kg/Y8Tdahu35wvK3OCmBUeqovq260d6/xFbIU9jo642uDMJ8lY54EqfsIxotyNC5rzmMh3Qw/jskPRQiln0CGxVpaISVgiDtDisQEilOhGlqtjNlvUiPvAZEuqE12D2psK0WO7nP9cw7koyMpws1mxUYyCN3yGp2n2b7WeEytmwTzgu6WwxQWVYz+rzDQWSTHq1hRGKQKqiV0M6qZzvPGdwNLQoqbZsrEAjD2zmaV0OZZebijkbrH+cVke4h1zwGEtAVArl/HcIEJIC9uVopx6Lsnxfc5UKkWO9eLipm3LcNM5V70n1k3yCYD7n5qZikqyPEhSurctQC3wJ3hu894NdIcIRKNIR18EhQWzo9WB/ciOkgxcSXqNXohT4kQ9LkhsI1IGbJ4CJIKcpQXf+rREx2s/bDFBo4dotEL+wZuJiKCmkVh1VDein7Si+WpBkwdQY2sBKFntr4ZK7R7yFjfdVCZK846lXWr+qvDTRtUloLWYipnqF5sgCYVZMUT0V8DW7kq0Ul6wB/g35jW9DYNh1IZB39M+Sf6d2I05wWcVoLcWlTbUxW5doCurJiSk1KYw4NIKknedNsEVgFt3wLI6iY0dVqQu5lqPQEzmhy/E6ckkLn43k7RfPRagKrA1seIevj9maUd3W/I8Tj4A/rF1M= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: d6630447-1fa6-4531-62d2-08d3532cc254 X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB2047; 2:3RCPIRgiPjTpe2d2pSg3HiAM7tXTaKfbFBdSrOL/cA2BoCFNYaA9O8K7CBh1Gbtcl3HXzpFYsMkaVqfXAY/XZFspbfoaKg8K3zYx/TnecLxSIVGBulPSVkm+zOx+1lu0vPmtE/9l9DdL+IvtL4AtdghwhY4FCJOblBvFatO0FIHviy5FsUV4QF8P101/aaOA; 3:ShDjJAJFQs+DSwN9p6DR5lI8UKDZGj5b4SQWaCYxbI9q8JQvOSz187xnfrSDicfWuJT/chYY8JT2fLXVEYzOMdbSe4Ssjxq/LJQ+5Hx6dGgXSFkRqvBPVYKLOy1lEElAAzWEYH9HgDWylyfDSajZqqqyVelghsFoqJvFQkNFiPklt7bhrVEBSHgpGShzVE1KdxpTbJSGiocj5sxh3ohO7ar+D71+dft1bQtJjNvmsKw=; 25:VswE8HZ2k3xb8Hngd4jVE/SDkPor41kRTyTd9p+WGFWlcRmwulrGhK658XhleTrynVS0/BJFAzOSCMIJ8dbAnQ8oQsYvNuUaJPDGTZK2TaL2zpSb5eXcg/AkRyRCvcH/AcMgIw+mMw2uNN7OVJAJJgNSuhGNLmwBsOuMKaS+avt+rhBVVnuYlSGEe2SkNWwcL8zDaZQTGJP8i09L8DfTjdd78EOZ2WEAuNGqQV5hsaaaci7LAxx11nbWjJtqWbgV5btQBWAykG6MP4380UNoWoojxf8RAUTbJQWZIN86qRsfVlmwGigeuuE1SCa6BOhXrGP98zLxi+TIHKnv5RyIL7r4RCyT9PVHThpuzVYiWzXFmS1VL3FL+WZIc1CQ6Wrfp4kr3azaOqOlLjxXwcfacsvnw93OntjoBK/2lfMzxzZ57vZySQqUzzEzJVbxLjUvdMXcs8AiOeMDqk2JjNfDYqaHY4Xxer0yOqELmoOqVibvkdmjsbIK6 0rP3DNHVBvsG9d9bImg3NtU+RZpINMJ1A== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB2047; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(13018025)(13015025)(5005006)(8121501046)(13023025)(13024025)(3002001)(10201501046); SRVR:SN1PR0301MB2047; BCL:0; PCL:0; RULEID:(400006); SRVR:SN1PR0301MB2047; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB2047; 4:YR0IGxJiq56ei8s/PeXY114AVGBgP2zakec8wscOtiT2uiK2w3yqGrUdhZw/LZP6JFfrWpQNAU3i5oOQSCG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nosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2016 15:06:49.1476 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB2047 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Tudor Ambarus --- drivers/crypto/qat/qat_common/qat_asym_algs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/qat/qat_common/qat_asym_algs.c b/drivers/crypto/qat/qat_common/qat_asym_algs.c index 8dbbf084..05f49d4 100644 --- a/drivers/crypto/qat/qat_common/qat_asym_algs.c +++ b/drivers/crypto/qat/qat_common/qat_asym_algs.c @@ -711,7 +711,7 @@ static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm) } qat_crypto_put_instance(ctx->inst); ctx->n = NULL; - ctx->d = NULL; + ctx->e = NULL; ctx->d = NULL; }