Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1261146ybi; Wed, 3 Jul 2019 12:22:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8Fog/NwSXxdUxbA4oh19azdMvRNtVYlWlG7dj4X/PuFHUuVQrDoMFTshtCQkLpVaiagHH X-Received: by 2002:a65:5248:: with SMTP id q8mr29820638pgp.259.1562181751977; Wed, 03 Jul 2019 12:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562181751; cv=none; d=google.com; s=arc-20160816; b=wI9S4U0Q8Dx7ZorcnY7bIUS+bFq5ihjjwng4xa4FNo35zOVK3ORagoFPEN5VqKOdsa gVCWA7wRZr/pJOAXxJtZA/hi3sds2+WSyqKQm52ICpeuF635e/jnHZmwyBM0IRFHXrHO E0qawqbCXFBeb5mI8ljdovUxcqE8NvUdypci29pd24faowLpdntOVKQr6r6ATJVlsuJ5 cp4Pvb47k/MVr6F7G2xenqC9eEXROJHPxdwL1c91kHpyFgVGn6bUEFr/mMjExWprqKtk DdoG7MrtvxMz/Tca0mQVTVEuJORCMOKh0W/Lcj9ATOjNq7JpuTP7vcLfTXax7IKWvDp4 mczw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=mRLCO77h1cMvQNM5tbxFm5MfbWmMMqQ1NtARSUbhGfs=; b=P5uQlQIOXcCC5dvOdGJ+h3l5J5P47rfLsC9bF/K6oPa2d1lazGM6kfOYPs3N+wHo0V jjCX1dvTOHlrVc6ASFJsdaR3mo9nhZ9R15BzsfTi7k5bcfhn6q3K3Q1++rg4e2O00gpd ZhEp+gTS9/TN//jwGdmM8uH2VoA0wuGUdLQ7/nKj8JxdwypFkPybz1j5TLMusqcqLvbO kQMwc6u5Uw7RFWVmKqPRf29dG7gb85FKZJYx7dw/97uTcCit7VFu8IJFbilhoa+jdGN3 2rFvh1fo6MK/LKaaXRM4ji+j06mULe0zZ9kYjKrX1a2mEMa8tFZF8lgYlDBBc1BB1tSB pXTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b="S9PK/QNp"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i94si2906378plb.78.2019.07.03.12.22.12; Wed, 03 Jul 2019 12:22:31 -0700 (PDT) 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=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b="S9PK/QNp"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726581AbfGCTVa (ORCPT + 99 others); Wed, 3 Jul 2019 15:21:30 -0400 Received: from mail-eopbgr780087.outbound.protection.outlook.com ([40.107.78.87]:52947 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726574AbfGCTV3 (ORCPT ); Wed, 3 Jul 2019 15:21:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mRLCO77h1cMvQNM5tbxFm5MfbWmMMqQ1NtARSUbhGfs=; b=S9PK/QNp8T47QP2udO9t8lOevusgYhfY+mLVACRSakF21AGXUVfUhEtKWy0vsUW/IJp7MVHyDBU817U0LQAugeuCbyWQfIs5pnOk6Mh83L1ELaoKJEWRKLjjEpdBscTyJoPu6qK9iWihyOK8pe7HGc/bpRZTpxyct2j/NQc1Dqo= Received: from DM5PR12MB1449.namprd12.prod.outlook.com (10.172.40.14) by DM5PR12MB2533.namprd12.prod.outlook.com (52.132.141.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2052.16; Wed, 3 Jul 2019 19:21:26 +0000 Received: from DM5PR12MB1449.namprd12.prod.outlook.com ([fe80::180c:ff0c:37e6:a482]) by DM5PR12MB1449.namprd12.prod.outlook.com ([fe80::180c:ff0c:37e6:a482%10]) with mapi id 15.20.2032.019; Wed, 3 Jul 2019 19:21:26 +0000 From: "Hook, Gary" To: "linux-crypto@vger.kernel.org" CC: "Lendacky, Thomas" , "herbert@gondor.apana.org.au" , "davem@davemloft.net" Subject: [PATCH] crypto: ccp - memset structure fields to zero before reuse Thread-Topic: [PATCH] crypto: ccp - memset structure fields to zero before reuse Thread-Index: AQHVMdSCRv0gts48Gk+YiLK37j85MA== Date: Wed, 3 Jul 2019 19:21:26 +0000 Message-ID: <156218168473.3184.15319927087462863547.stgit@sosrh3.amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0201CA0065.namprd02.prod.outlook.com (2603:10b6:803:20::27) To DM5PR12MB1449.namprd12.prod.outlook.com (2603:10b6:4:10::14) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.78.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 52dc8ab7-6068-446e-dcba-08d6ffeba46f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DM5PR12MB2533; x-ms-traffictypediagnostic: DM5PR12MB2533: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:397; x-forefront-prvs: 00872B689F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(346002)(136003)(396003)(376002)(39860400002)(366004)(189003)(199004)(25786009)(66066001)(14444005)(256004)(4326008)(86362001)(305945005)(7736002)(26005)(68736007)(8936002)(2351001)(71200400001)(71190400001)(6916009)(6506007)(386003)(81156014)(81166006)(8676002)(52116002)(102836004)(99286004)(2906002)(72206003)(5640700003)(6512007)(6436002)(73956011)(2501003)(53936002)(6486002)(54906003)(6116002)(3846002)(103116003)(316002)(478600001)(66476007)(66556008)(64756008)(66946007)(66446008)(5660300002)(14454004)(476003)(486006)(186003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB2533;H:DM5PR12MB1449.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: qmZave1VPnYI9bV/CqHXYJx/tnxyB6ebTJmMVgRqnYmOdCGbEK1mBY4O92VRxpYPfEtH0csiCdJRjpEaW5ljkHJ01+fq6dwZWO0cktkTM2NdB3nkom/dpltT7rjtZV5+Dl2IQ6WGtSrU4HpCbntLAe+JS8bCV+AazgzSzSnsGWVWoBGBVmYDTI9A4appW2rbXIedoiJvRlyA1T0KMBeqq9v5XuoprUClmP0iHwMu1O2dNoi2dTtJpC0dkkVc8RvXI0MmSUVynj6zMrtlNnOJGD0MeUql2SRgqH8TdKWh/adjYDcllFq8qaqrJjmkGlZf6bZeFQO+xWAFfixml/pk/h88dtnH9giD8CEXzlDRNMiLfCVtwZJTN2gQNM4h5u2JpEDwY4XInLeHRxee6hOc8b+PJjXv2hmPCBH0vXCBGQQ= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52dc8ab7-6068-446e-dcba-08d6ffeba46f X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jul 2019 19:21:26.4959 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ghook@amd.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2533 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org VGhlIEFFUyBHQ00gZnVuY3Rpb24gcmV1c2VzIGFuICdvcCcgZGF0YSBzdHJ1Y3R1cmUsIHdoaWNo IG1lbWJlcnMNCmNvbnRhaW4gdmFsdWVzIHRoYXQgbXVzdCBiZSBjbGVhcmVkIGZvciBlYWNoIChy ZSl1c2UuDQoNCkZpeGVzOiAzNmNmNTE1YjliYmUgKCJjcnlwdG86IGNjcCAtIEVuYWJsZSBzdXBw b3J0IGZvciBBRVMgR0NNIG9uIHY1IENDUHMiKQ0KDQpTaWduZWQtb2ZmLWJ5OiBHYXJ5IFIgSG9v ayA8Z2FyeS5ob29rQGFtZC5jb20+DQotLS0NCiBkcml2ZXJzL2NyeXB0by9jY3AvY2NwLW9wcy5j IHwgICAxMiArKysrKysrKysrKy0NCiAxIGZpbGUgY2hhbmdlZCwgMTEgaW5zZXJ0aW9ucygrKSwg MSBkZWxldGlvbigtKQ0KDQpkaWZmIC0tZ2l0IGEvZHJpdmVycy9jcnlwdG8vY2NwL2NjcC1vcHMu YyBiL2RyaXZlcnMvY3J5cHRvL2NjcC9jY3Atb3BzLmMNCmluZGV4IGIxMTZkNjI5OTFjNi4uNjk1 NTI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