Message ID | 1458325927-14737-6-git-send-email-tudor-dan.ambarus@nxp.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Herbert Xu |
Headers | show
Return-Path: <linux-crypto-owner@kernel.org> X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 09DC5C0553 for <patchwork-linux-crypto@patchwork.kernel.org>; Fri, 18 Mar 2016 18:47:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1CDE920306 for <patchwork-linux-crypto@patchwork.kernel.org>; Fri, 18 Mar 2016 18:47:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8ED620225 for <patchwork-linux-crypto@patchwork.kernel.org>; Fri, 18 Mar 2016 18:47:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755992AbcCRSrJ (ORCPT <rfc822;patchwork-linux-crypto@patchwork.kernel.org>); Fri, 18 Mar 2016 14:47:09 -0400 Received: from mail-bl2on0093.outbound.protection.outlook.com ([65.55.169.93]:18042 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750994AbcCRSrI (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Fri, 18 Mar 2016 14:47:08 -0400 Received: from BY2PR03CA004.namprd03.prod.outlook.com (10.255.93.21) by BY2PR03MB380.namprd03.prod.outlook.com (10.242.237.23) with Microsoft SMTP Server (TLS) id 15.1.427.16; Fri, 18 Mar 2016 18:32:24 +0000 Received: from BN1BFFO11FD051.protection.gbl (10.255.93.4) by BY2PR03CA004.outlook.office365.com (10.255.93.21) with Microsoft SMTP Server (TLS) id 15.1.434.16 via Frontend Transport; Fri, 18 Mar 2016 18:32:24 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD051.mail.protection.outlook.com (10.58.145.6) with Microsoft SMTP Server (TLS) id 15.1.434.11 via Frontend Transport; Fri, 18 Mar 2016 18:32:23 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u2IIWAmP015418; Fri, 18 Mar 2016 11:32:21 -0700 From: Tudor Ambarus <tudor-dan.ambarus@nxp.com> To: <herbert@gondor.apana.org.au>, <tadeusz.struk@intel.com> CC: <linux-crypto@vger.kernel.org>, <smueller@chronox.de>, <horia.geanta@nxp.com>, Tudor Ambarus <tudor-dan.ambarus@nxp.com> Subject: [PATCH 06/10] crypto: qat - fix address leaking of RSA public exponent Date: Fri, 18 Mar 2016 20:32:03 +0200 Message-ID: <1458325927-14737-6-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1458325927-14737-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1458325927-14737-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131027995436318545; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(4326007)(2906002)(5003940100001)(50226001)(11100500001)(33646002)(19580405001)(47776003)(106466001)(87936001)(5001770100001)(19580395003)(85426001)(1096002)(189998001)(92566002)(76176999)(86362001)(1220700001)(81166005)(50986999)(36756003)(48376002)(105606002)(5008740100001)(229853001)(586003)(2950100001)(50466002)(104016004)(77096005)(6806005)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB380; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD051; 1:9ikui2K5SxtEh3ChvfOs7xGPuGSSrBuXe53qNdnTdFGmR8omgWuU1L8/FFDpxEqvDadKP7yOZuRDKpFdt5sRS9GpyWl7rbn9JKe0RXb2C+R85wsgCyYW13Vs+PRSQKawmU6GQZtzyXSv4IBBxZ8BH8AEbblILfcupFBbEvKOd6KWasoigD2rjYnI6mFfOR7Swv/KSjZZI1LxXQ8UjDQFqOSBLNGyOFuwQ2Q+2fPaTW9XlSbsgmnzDuQQosUWIpwqY9Bl4AvNHGuZOUCzh9bFRKW/YKrzqNl7Rkrl4AbMVuW3xwhiB2R/HjaDC97AD0Rax7kAdqW5vqjxjs+J+hF2YFpRe97hD+BIN35d1vaxlsWdoYYvmGhQCv5aqOBb4jIzWkemzjQqY7dz3ko45FXD6nlLDF1J/QaXCWF1SBiRSB6HYbbmg4DUXQ3PKXxjBy/D4y6GVxlprKYOy/NCfXgGAv4dbX7HgBlin5jdFdZfGZPydRkpdcDyOv6AW7bp9/yGX1peGgDM7yGNJFrW1f9b9Pdu/xATWYJ6B3L3b+ZL8Lq7yMDlXtZs72gN6qORADX7sre3+hlivLS67WkQtSz4WlSVfkh+uW94bgpWMru11D4IdelbXLUWdn0/JZImDeLs+AFQtCGCMe/WAbY37d79+IOU7GxqhDw0XriPaMNZnvk= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 2199e915-7dfd-4270-9df4-08d34f5ba611 X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB380; 2:juAMDl91e5qxs1p3cwyBX6dgrhhREMKzwWWpSt8eMsQQ90/eyT3m7CkscIivZ/XvQQi9MqKoP2tKc9vdnEJoLS83zWbhcS7JF8EmEYNh2nvG0zWyOifUJjBtxBeIzNNZKaRyv4z/ysbhVahBB8RV2BdALE0agrc0bow2xKgGfcWdbsBRX3pkzoKMhJhD8Pve; 3:hJlxQ3v48cto5xiwqfRrojl3uNkOcaoOwzgByTzfgCvrYLzYwvUlZSufKSnWq50EzbqHzcSciSQjOflLs4CiaRxmTpmazbE2SVxIKJUOpHo1qEywrYXgnL+Jx1rl1hA7OTEYiApzQnspzYis540j0R3x4m3Bu+gYewlM8lvI0xq0J+5F56aAcJK7HiJroR8205/JnweBHYXmB95GNuqrY3WmGyl2UgLZAvocTG09fDI=; 25:3mafOU9R0vJ/YTIPB7AgZZCpsLc5X0sbgqSw6nmVT8s/2M7IuSPVSBb6b12MDXX5tm47o9prD6ckaSz9CWLzFNKgcdu10hbN8f7olN9rSVRlX76Yyh1nmn9o3cN8aAJ16dynwLEvuoODpLqqqEDWDWVz/hNvjV4ZZql4E/7hDRTVrqEoqu3wZ+kaABK/NwjD0UusMYXFhxHlr/DmQDPReYeXiIZ3gsyFyoA+vaF4TqHp0wQx1Y+SXS/tBAKkLlSq4WmvsR5Hfl/qLo9QpW07v449o4vcX7aHoyFF0xLqpwxytEQY91JTIXj4CwiI/lH6fDGpznw4TWorTb43/+HRNIrDXpvAVZdQQKaKglYbofH/pxZ864sTb4nWNbGGA7txv5tX1slq/FFsspD7zmYF+c9Ir9Rd6ZR/7H5v/TnQ12iYjfrdvjRbh5rWPKHA2TmGMJ3E23RgJkRcqW9OZaFqQHDwGKFCOrXfx4W1xq6InU0= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB380; X-Microsoft-Antispam-PRVS: <BY2PR03MB38091D4825926176607C0BFB88C0@BY2PR03MB380.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(13024025)(13023025)(13018025)(13015025)(8121501046)(5005006)(3002001)(10201501046); SRVR:BY2PR03MB380; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB380; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB380; 4:ZQsSbvujXi02FXlc2m6JGzwR0PAUj7+2dzoSb4eInxx+RMA1BFABzFzAmttsasnl3wjeqe6zUxBZunKhB0S6PTdTg0Va8udqX7KqvrucRQcz6OXlLWgKXz02SS6ru8MK1DDONCY5FpoS+TWqJrlF5O1qcrptpkcezYUZbfXKiym6mT/64leK/64rvqVw49zxCufjj8E+ox3EM2ufNxlyohCjUJcIvm57R7v3KpOyydc2l8sskfE0E8qeJBz8coERtesRG2UrNfyPECs7LaxbrQLMEvxTGNitBp4C8yr/wsRx4mHEKCHkXWadXlBViZw7BYrzqR/nUZiMwklpQ5lFhPodlshuCBZpIbUa96afe7qFgkWk4D9346zkP7fBiSve2oubIrU2bygKoZvY9EYkLIZWlny+AOTYGvVJJqIi8lHauC4AlshoN/mNKEYly9/CVlgIejSColQfb9e4BC7/Mw== X-Forefront-PRVS: 088552DE73 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB380; 23:rc/bpiVMIeYi2VfFSAlwLKpjj9EYRSXx9oh2159+gZ?= =?us-ascii?Q?u4I2SOl5ZrV4wn6RNDnQhGegquFcu9Riuok3dqegac2z42tpMFqTfqaMo5nV?= =?us-ascii?Q?h1sk+N6ib2Q3Hqv+9manojpTki2dTnVD4gAJ59I8PSXsbuxXUGsgwwlmVll2?= =?us-ascii?Q?ZgHxrC6elJ7yO8HmbTJe13qaPe+J4HVsLXZ6trgz4ir8C38Fytc0oMNOOKeM?= =?us-ascii?Q?QkNHrvz+utnPXanoGfYIQ1iq0LmMwfTWX2SB4LaBDmdIo+eiRVvidyGz8cno?= =?us-ascii?Q?uJnuszvq4mOdn9/eTEeLSvcqOLORalMrkuzBVY9EoubsmjY1KA9Ufx2A9cOw?= =?us-ascii?Q?USUz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xMfPrNmGXJP0UTivm3uGARd5iGt8w53zSqChG0omkoaq2nTzQlHdUGU=; 24:2vvvBq60T4Zk3cW+hV4t4Zte6lBQCC8zME/7yRuxPVgXuW2+K8movIVJUezS47xntCRxDfRVMScgoXuzyYMtKR0xD0jV5/mIDH3a8XRNZtE= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2016 18:32:23.3822 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB380 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: <linux-crypto.vger.kernel.org> 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, 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 |
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; }
Signed-off-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com> --- drivers/crypto/qat/qat_common/qat_asym_algs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)