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 78DBFA04FD; Mon, 4 Jul 2022 09:00:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1FBE4410E5; Mon, 4 Jul 2022 09:00:17 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 47C2740E09 for ; Mon, 4 Jul 2022 09:00:15 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 263MXN3k011185; Mon, 4 Jul 2022 00:00:14 -0700 Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2175.outbound.protection.outlook.com [104.47.57.175]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3h2kcrcx3e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Jul 2022 00:00:14 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gkXbiau9defT1dWo+DBYmWMj02QnLH3Duh8Orcn+z8B6/YAwlSQDXQ2CUMxVTYat1zuA60nvuF+tZIym6WLGE1xDtl5TSoKeh4KlzrNlzl27bAx1q0RCV7ifl1+NIWy3RPPWB10AE7cjbGYTafStWmymuXRxZ4s2SB+gt8HfQwB9AhSZEvbN7Ykghp0chtiwydFXNZn2zeVxZIOuiiJnDlyAtxrqs9PTe+dCVspE4vo4D9C8W+HSvQuwJ7+WEm+BTgGWm0A+lFPq3jnLy6BqWjcgH3rdc8WLBvNQfIGz4SuwWs7ppokcRs39PkWdSd5LpaPrHvEd3vJZWQs0cMIdGA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Z1euwxpBzAFakuhp1Pg9cnASpvYmYzlIvxVNWM7ZiGg=; b=SgOhA2rTib+jLdE/b6uPbgG1dCQEkOUMRQg3NHR6T/EdNFUGAgV8XsRP7cgR9euxPxLqzHSkn1dfO/4EliWWQf4kdCTnnNdACXRJb/jHaiSJbDs+LC5ontgNMeOwhxeuagh9Iegje7+ZsIjBe9tHlk4Vn+6hDDJwIDg7+qN106BQBfyPM8jPET+F7FxQDffGXdDcuBWkaXYKa6fsIu3Eff+B77ciMIzgvdoGyc8VaennarhBh5+ETSphpHWM03pEWgUg8sFz2DFBDUfg8hB3PjplYRoOX5tM4D9ovflekpvGYbxoMnVyJ2XNNi17PJ9OMlgPo+uqrA/KIcqSexRIkw== 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=Z1euwxpBzAFakuhp1Pg9cnASpvYmYzlIvxVNWM7ZiGg=; b=r8FQb9GWWZiAXsw5FsDnqPInrcQi6F6ldcSAoMv6eLYBQEWPjWV3Kop61apoW6yrWJkf4fRvNgsZQsbe588T8IiYnv9N/rWe2Ydeb58pBa6Y1ZpsB+c67XZXm0oqudg+c5Ru1HqE8ZSj6w4XS3UFQcz2S1oJ/GKbL/T21AuGdvM= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by BN8PR18MB2963.namprd18.prod.outlook.com (2603:10b6:408:a9::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.20; Mon, 4 Jul 2022 07:00:10 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::bc33:1fb9:5d70:8c5]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::bc33:1fb9:5d70:8c5%9]) with mapi id 15.20.5395.020; Mon, 4 Jul 2022 07:00:10 +0000 From: Akhil Goyal To: Gowrishankar Muthukrishnan , "dev@dpdk.org" CC: Fan Zhang , Brian Dooley , Anoob Joseph , Archana Muniganti , Jerin Jacob Kollanukkaran , Gowrishankar Muthukrishnan Subject: RE: [PATCH v2] examples/fips_validation: fix memory leak in sha test Thread-Topic: [PATCH v2] examples/fips_validation: fix memory leak in sha test Thread-Index: AQHYjkO5God8483tsUa0DAlghR3Awq1tyr+Q Date: Mon, 4 Jul 2022 07:00:10 +0000 Message-ID: References: <2acc661bc1b574166e599957c805d70eee0d3a42.1656773321.git.gmuthukrishn@marvell.com> In-Reply-To: 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: 441713b7-31d3-4ea8-14a8-08da5d8ad629 x-ms-traffictypediagnostic: BN8PR18MB2963:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iAOHMSPgtZBByn3nmWMvOIiyI9YAbfpLeeamM5m/8mk1SuB+8aTIg8ph907wDJQ8N6lQdEU1oVhzNOafsa2tZB8MAFjuhlUa6FCrP5jExXbdrpbvzvPnzQVHpkPdW1pQeCzr+UUXlwLEGVvNHaIK3ZBEJ+aMpKfXpwwjhogJOBf+/tqJ2fZDK2O0TjcfhsGS0ADCBQrLPWnR3t0t0W+CqhgiqOPeHPkT5EJLVO0nrECRLI8tMYqN8/OO6+On5nz8sM1tX5EXkeGP0b6uPf96jWN+4Bkuu6BGFUNjT9/uAWm1vGtTnDJ1NYecjQ1UW1z7SEUdis3loQl7tV61osWHBvha+zrIUEENYajM03jFJeRhHKwSJfV7y/+oW69oLgXKkgU0UXd5t0m+rlDX8iAAaet7RZu1UnaG6O5/nSTQnKg4ek/J88vmziKLFfkzMB6ssDC/nCGRcJjtmiRUTkLZJ23AA1SqVoZ8rb41mucF39eww3AyycAikTMHoTeN0vjS676AV2giNJlQVCDYql4Ytgir3wBH3pRutUv+rVxZ23WHJBjBU1OUrq8gGvIlyiWZDfr98bsArHjZ/Ol8kPhxaY2a67spOjpIObeUFNl7Cw0TlhRb/TUYX9HKKcWr6GFqIylOX928CFj16dOSFCqykUe5aFecupWwcHS1cDXCO5JmPx1XkWpbp3Hx92nY4xMc14SuEBybGmXTCJbVlnlio5KCfMQwuIe5p+B64/xVBlJ86HqOUpKlsL92q71+Wfw8TKBqaybWKd3IhFBLqN1HA0nrNT9DG46cYDlBO/jJmRtNL1JOnyXwK6zE7ZKNHg72 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:(13230016)(4636009)(136003)(39850400004)(396003)(346002)(366004)(376002)(38100700002)(76116006)(66946007)(66556008)(66446008)(64756008)(8676002)(4326008)(54906003)(66476007)(33656002)(86362001)(316002)(122000001)(55016003)(71200400001)(110136005)(38070700005)(5660300002)(26005)(9686003)(107886003)(2906002)(41300700001)(52536014)(8936002)(478600001)(4744005)(7696005)(6506007)(55236004)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?WefxAzJvaWcVWf9TETmZjQGD/IXjQ6UP3N2YXndCVl6lBK+SO4kNGseLcuOq?= =?us-ascii?Q?McqxRx4fXgT7eJKLIfB1c4JJMdjlnBck3kPu/4kroLUawRENavWTwaXNi82I?= =?us-ascii?Q?TXIEi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FfC3ZrAN?= =?us-ascii?Q?MOfcTavAG9ex3mIqTX2H5uMR8vXEB2x83KHm91L2SQxWVlmjYj0sIik3vTI5?= =?us-ascii?Q?d93AAJ1HLnYN1+Up9jhW1BzyYOIegh2fyhjWikxG9Ri7ymGr4PoC6gojn84b?= =?us-ascii?Q?vfXu4j8ir0246NP01N+8iv0/NsTjDORJVydIN6XSc+fH/gVSCYpn9DQVyZbD?= =?us-ascii?Q?Yofx6ytYqD1y/I2ZoszvTZO6sgJnidabZirBAbOS3elZZV03NDKiGmOrxu6A?= =?us-ascii?Q?Z+llvcoiy/CZTujmq/nZvq8brghl6Pc1S+xyeWjaWkI13xhRvuKPDNvgbeU4?= =?us-ascii?Q?xeY9M06qrzq/xcO7/vYfINZZByfLbeRYBA+TVbtZB4aqk4Vy6f+FagZPy6Mj?= =?us-ascii?Q?8VvINQUzBi8yYizBCpLw1/JroqNzt8VdgiKzkhqsIVKDEfKdOJSlehZp6wrv?= =?us-ascii?Q?soGJUicWSdMVyTxbGPxBRuy5bYtBPfGvrDm6NRYKOU5C8oWT4Wbejd2z8aq2?= =?us-ascii?Q?p3Vbx4n20kA6mt/t2q0u4QBjqPXPHzXf6AWpgJLl2Lq72ArayAkClS38Hkgl?= =?us-ascii?Q?Vex5ERGxFEcXo0pB3ikRcYFdvs1zW4BABtDqmoKV?= 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: 441713b7-31d3-4ea8-14a8-08da5d8ad629 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jul 2022 07:00:10.5763 (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: pW39va2U1a4hwhN0K9SClhUCJHh76a+UnsB+so7qTopvrVoLQJYUeKxI56IXATjt2Puco2AiW4o7XqUWrgUIaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR18MB2963 X-Proofpoint-GUID: VfzYg04GQGfQrx1rfNZIBu97dj0WApeS X-Proofpoint-ORIG-GUID: VfzYg04GQGfQrx1rfNZIBu97dj0WApeS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-04_05,2022-06-28_01,2022-06-22_01 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 > Subject: [PATCH v2] examples/fips_validation: fix memory leak in sha test >=20 > There is wrong size used for allocation of digest buffer which in > some cases cause memory corruption. Also, fixed places where memory > leak is observed. This fix would enable sha 384 and 512 NIST vectors > be supported fully. >=20 > Fixes: 93d797d94f1 ("examples/fips_validation: add parsing for sha") >=20 > Signed-off-by: Gowrishankar Muthukrishnan > --- Applied to dpdk-next-crypto Thanks.