From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B54C0A0C49; Wed, 7 Jul 2021 20:59:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 318A2413DB; Wed, 7 Jul 2021 20:59:54 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 065F9413B6 for ; Wed, 7 Jul 2021 20:59:52 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 167IoofU007543 for ; Wed, 7 Jul 2021 11:59:50 -0700 Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2046.outbound.protection.outlook.com [104.47.66.46]) by mx0a-0016f401.pphosted.com with ESMTP id 39n5tg39af-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 07 Jul 2021 11:59:50 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aavqJj2O6N6v+XYdx2gtZNx2mfCRWBY2Bl5LtZ/w9U20Zb7F++lmiPGySoF6SeAarR5WRunAtpjrPCIPMrOWxb5I38w1UDK+F9qvo/wsmpYiQvhhloZyO4PLO4uI40UQxArJX4pTIr2TeuLcti/uwXcZ/S/pFVxK7NMh+rDtIxkGt1m+mAeTn3YLyzzR6fuhItVqpx4NnPF6Y8T7/ZVu0uSzjPUrZ0JvEdOy3TnDt5uDDJRhPRajW3a0L7Upm92y7jEFpuyH2d678L/cUpxNirS6s1AxlVt09QvJ5RvENl7OL6bsUwu738VDl6hjmUdzZcXkw1XhBINdWhWuUwQykA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NL+ojCFh6gmc5fMg5CUkFHGE5tlNdNilYZTDGwpNpok=; b=fzGK6yp+3Y/61Uk4pgrfzs5sSIIqOLbl9VsyS0iI8GF4o7660DzdI7DoMrlI1Ubv5TJdoGHbc+DLlLzcw9O16EsCRLR2F5p18I3spPQpsTHBbRan31kd5Bk+W33UZ8lZSQsDm8VCJAkKZxeuTftiWUCeQ8H1Q0axt8xyS7IivOA5bj9X22Ocq5V/VbpAeddqta0ILR91h1nsqklXeLhH9gC5bBnoC1Ad2u6c0kqgxvm5qWxBKTKFRNcr/VFhHvlAT5svJGCXH0dMPLjYs6KO/awZjZl4nl717KD/XnPRH4h7Lks4W1CdRG3qjKNVZLLDaOlIarN7gNu1QtgQeEOW7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NL+ojCFh6gmc5fMg5CUkFHGE5tlNdNilYZTDGwpNpok=; b=GBGuD7fmLLyjwu3jMGD3PIx93y1h/TiISV4sR+XW55d6Khrv2ev6099/YR1AbUMbDbTkgBt06T1QtFlikFyPLuGacxTDaGaS21hMfHqNCZe7/EDpdrsZWMdztyr0hDdRFcgCm7UW707YrIWXw37SeUalHTPCNGf6KJaFW4tTTgw= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO6PR18MB4435.namprd18.prod.outlook.com (2603:10b6:5:355::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.21; Wed, 7 Jul 2021 18:59:45 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557%7]) with mapi id 15.20.4308.020; Wed, 7 Jul 2021 18:59:45 +0000 From: Akhil Goyal To: Anoob Joseph , Jerin Jacob Kollanukkaran CC: Anoob Joseph , Ankur Dwivedi , Tejasree Kondoj , "dev@dpdk.org" Thread-Topic: [PATCH 2/2] crypto/octeontx2: clear session priv mem upon destroy Thread-Index: AQHXby4x/OeiExgPFkaN20lkGeEFNas35gfQ Date: Wed, 7 Jul 2021 18:59:44 +0000 Message-ID: References: <1625222196-215-1-git-send-email-anoobj@marvell.com> <1625222196-215-2-git-send-email-anoobj@marvell.com> In-Reply-To: <1625222196-215-2-git-send-email-anoobj@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 00ca0558-2b95-4968-34e6-08d94179629b x-ms-traffictypediagnostic: CO6PR18MB4435: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:257; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: r3xR+irJnloyfTytR/C6RncZt4RaWnaOYyerHcNMYvocbmSgdKP6SMQ15CWED3YhLjGOFH/nR0hYRCnsPDXobjwrED1Hy4XFkZwN9NDWDxGeRjZB/r03cZBmKYH0eRWuancx4c4G7rK2NhfTTecQQzCsnCER5eAwZlDli/qXrZvoQGDg0CR0CmwQEPVfuL1pGfLM5CslW6KWj8V7D4AcboafVF3mOFO2WeXIvzXSEtThO9uF9vkI2XbKszPabFm8gh66NCDwFC8TssNK9mdg/iU9AuFpRwg4i11Jlf+6K3EH10NudZ29SoSPZHfJ/isl/NjjhuDQgqPKsTErJjWUom6IDc9YWLekSOjB8PGuV2rXhSYeOhNrwsdrap1DMVG46Idv722ePoJEIPbBNKkca6hjbFytzfraejX4px0Y8IP4H4BCh6WuyLaJ5l/bSfVH8fY48i1tYxs1RL+XVqI0sZT52BcC7RY5wPmIXfMI5nzBo7QVC+x4w0U8U1M7T17JOguUFRPnzbAcFv6kTvUh3V2dhqURMmjawrxc7FE9gmaBypUvPNrNhAhudloFAPCoC77FZmEIpHztb37WrySvrFbewfpCZeewqvWsHRy+5pAOoatQnYVpTtW9zcEupm395+oy1lkb1Nq+q7uweGKxwA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(39850400004)(376002)(136003)(346002)(396003)(478600001)(4326008)(26005)(55016002)(7696005)(54906003)(110136005)(2906002)(6506007)(33656002)(71200400001)(8676002)(186003)(5660300002)(86362001)(38100700002)(66476007)(4744005)(6636002)(122000001)(66556008)(66446008)(66946007)(64756008)(9686003)(316002)(8936002)(52536014)(76116006); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?XvtzgI8aTMFtGv5qzpco6wv0dDKegKbpBDLTLNKWrRue8wksuDJoSNcsOdSc?= =?us-ascii?Q?fy984K5OukVxUZtvEdQXxy3Hp3vSj64yOZGhsuoQwBkYDiyvlxbxLQYBbsD7?= =?us-ascii?Q?7doDmSoZuPoF0PJK0d3lIwExibkaKjb//muwnx8UoU4H6+imNRZgDQBu1/Tb?= =?us-ascii?Q?qG5Bj1k/FPS/FrDgOeG1IRfMBu25g99hapJ6ykPZuM2agtrL4k6YYeC6zBwH?= =?us-ascii?Q?HB/tTBIwJgt+PLFtjv4SACqNixJilLsQkUO48ukJNwx8dFj2GF7ugJVqEynn?= =?us-ascii?Q?iGAoyuUxm+/dcmaRAGujgLIbpwIUESBnpxioqu6GimRhsA9sL4th9xXamqm/?= =?us-ascii?Q?GfIiADm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?= =?us-ascii?Q?X0LQTJCgrFXH2eq0vUNiEODpfosRoVKkLbX+C38DKhsO/c+la8t6epZHVkdl?= =?us-ascii?Q?xstpxggiUkV6FhPJ9jDqh7rB?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00ca0558-2b95-4968-34e6-08d94179629b X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2021 18:59:44.9906 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: e2JhYtr27DDzWZRlG8vKcPLosCZy0w8uII5spPcwILybXf7fDMoWO1VwpZF2wC0CHEn6NVm/cpZAaJm2RtOBbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR18MB4435 X-Proofpoint-GUID: vknkhHpToFkg8T2BQr45FCyGBSyYEzXO X-Proofpoint-ORIG-GUID: vknkhHpToFkg8T2BQr45FCyGBSyYEzXO X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-07_09:2021-07-06, 2021-07-07 signatures=0 Subject: Re: [dpdk-dev] [PATCH 2/2] crypto/octeontx2: clear session priv mem upon destroy X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > During session destroy, clear session private memory. >=20 > Signed-off-by: Anoob Joseph > --- > drivers/crypto/octeontx2/otx2_cryptodev_sec.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/drivers/crypto/octeontx2/otx2_cryptodev_sec.c > b/drivers/crypto/octeontx2/otx2_cryptodev_sec.c > index 3c5686a..a5db400 100644 > --- a/drivers/crypto/octeontx2/otx2_cryptodev_sec.c > +++ b/drivers/crypto/octeontx2/otx2_cryptodev_sec.c > @@ -589,6 +589,8 @@ otx2_crypto_sec_session_destroy(void *device > __rte_unused, >=20 > sess_mp =3D rte_mempool_from_obj(priv); >=20 > + memset(priv, 0, sizeof(*priv)); > + > set_sec_session_private_data(sess, NULL); > rte_mempool_put(sess_mp, priv); >=20 > -- > 2.7.4 Series applied to dpdk-next-crypto Thanks.