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 39B6DA034E; Tue, 22 Feb 2022 20:02:23 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12F8840DF4; Tue, 22 Feb 2022 20:02:23 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 306CF40042 for ; Tue, 22 Feb 2022 20:02:22 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21MIhABq019975; Tue, 22 Feb 2022 11:02:20 -0800 Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2174.outbound.protection.outlook.com [104.47.59.174]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3ecwaxakda-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Feb 2022 11:02:20 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iOnvu6dfLKXLqHkvfueOAoIkOUSpXrJpsvPXI8Q/u11QTEHnNQrEOGeg6CBxNrb4tEmhGsCJ+cLtUSUjrtwGuDl+XrahIy48zWJCCI6+/wCQkVmoX96A6ktQc/ENRS4vcNuwatB3kqL53nPrYZ0ZlPOI9UT3DNd4PmCGKrnSNgESCJqOYnUdiTBz0r8t+wttPRGLWJQ8CeeWdLacHPzTUkGExPOMFCuJqJuYSZPwRJL0njo+j/X42Skd8h4YFA4zma60TfXxlOdjkQLCoYBZ7YeMrq52l1zeamY2ogOpZwyaiMYw0Gm5wZJe2vrcMCW0+5XrJdTGGsCgj6rNI5XEkw== 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=zJzMTEuC38CcXYNvHDfAFQ8uGPJADyURZFNBRknqahg=; b=Bq//mGdI6IBomasT4+5XmzncVYiKHtn97Q87ghmKkAPOYoczyqgmNrmHacxmI+cfKIBQASLDo2yusLwLUAoMIjPowA23pLapds9kGjZmQwOwb/RSaSNp60DjGnr57lUIp5mayUsODwBqWI8EgBxZiBMwMUI1f1vEI7gCThlqQMFgf2wJiuXWWXjWZpeapgKuRprhxpCMZYg0YOGxLYFyx3oxcPcxzjr77QfgPO0LSxRnepIwjLiXDFz6kdE6H5NbrEKwQ7Q9m8NeuRJ1cKKnOjhSl9C8w8awH8DkVmCKirHlo1seL5VJzVpV91gQZaJeph7/7Xy0AfDjyJxfazefOg== 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=zJzMTEuC38CcXYNvHDfAFQ8uGPJADyURZFNBRknqahg=; b=RvF+hd2m+RqUIhm+UrVOYUZMLaMy6WfMHleQafsbH/f2Yz8yoH1hV+AnqApJyFlNBRNLOawQKV4HxvDxmecNoLPBw389WxR/2lHdo6Ch3MXHBdnZCAaSutQFQLe5eAMZfDl35O4hZCITUccJvn1mtrh9aRwpT1Aw4trdg8inGHk= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO6PR18MB3892.namprd18.prod.outlook.com (2603:10b6:5:351::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.27; Tue, 22 Feb 2022 19:02:18 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1c79:10d9:2997:cd79]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1c79:10d9:2997:cd79%9]) with mapi id 15.20.5017.022; Tue, 22 Feb 2022 19:02:18 +0000 From: Akhil Goyal To: "Kusztal, ArkadiuszX" , "Zhang, Roy Fan" , "Power, Ciara" , "dev@dpdk.org" Subject: RE: [PATCH] crypto: fix asymmetric private session variable size Thread-Topic: [PATCH] crypto: fix asymmetric private session variable size Thread-Index: AQHYJND/0Guazo+7bkqwAAwTI9oZe6yd1JQAgAIfEkA= Date: Tue, 22 Feb 2022 19:02:18 +0000 Message-ID: References: <20220218125752.579335-1-ciara.power@intel.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: c9e4ea36-ddcb-491d-1cb0-08d9f635d8fe x-ms-traffictypediagnostic: CO6PR18MB3892:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kq2SIZVClNyXL2COKODAILPg0HzCflZ3a3/lZsK1Yd6Mp1bbHpoexhOIKd8QzOZRP6HjLW4HeWCRbIVYxzQt4CwBjebO8sZ3kpJtJtMlj8PG78ohrzmoxOd/X7ZCq5lD3jG8v6o3btghSb47pyugvFhfWHiC+JUVJKMN3qQVtccwzYSo9lrZrV9A+HF4OJ9Tgd6Wv6SR5WcwuCjS6rGlhZ2x4gZ922dgUglsxg59cnzWwM8OHDZoIStf0j8fok7H4y0lu6su9AJPCckyjDgfPnmSRgLCADiZB3L8t3W4aZjg2QeDgLtPP6LTHwqQQMPszPgOQ7Rg8k8rSXsHmeLD2kq7R3+XT8pFgILozsJBLFVt8tjPCD68iZvGe1CsHKa4Ur3vT15j3X1SrTuYXlzuNmcYlIg7Sz4v9sdLGAxSEbExCPyblaPKtZOdVUvH/nRhnbn2umM1MUzlzFkaKGO9/m4Ma6QpWpkAUktS14EtN+/uSWRGPOAaMtC5d5V7ooJfvBaGUWKEpNV1auKqutaRszhdJ+tO/sz/ORyRaq2EAfb+mE3gRcVlgfuFWDPCAIzyvxAiiafBBX8OZu8QHsaTnLtbsyPVM6To1zmiziueBqlOsFfT232ugyWONkpvZKzsuHTyY3xnc1jSqiFz7NNvP8J7Isf4okAcuYFVZy8EA1npIYGVngIJJzxLvI/983T4JRxKPNQ1JumUYQY96Kh2Ww== 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:(13230001)(4636009)(366004)(38070700005)(52536014)(4744005)(26005)(122000001)(9686003)(8936002)(38100700002)(186003)(5660300002)(86362001)(2906002)(316002)(66556008)(71200400001)(66446008)(66476007)(76116006)(64756008)(110136005)(66946007)(55236004)(7696005)(6506007)(33656002)(8676002)(508600001)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?fvRCPJwLju3glKy1ddzGUjL5bMhLB98h67cb60+7OA92hzg5X2Pw0L5z7tpt?= =?us-ascii?Q?+nPdnlWeTkXl5o7zUrWF6ycQNkyoK5Z2YwHE/h6GwP/eiZFuBfVR4LdqxMbx?= =?us-ascii?Q?z2WNCbK2Asspa+9ezPSnG84emebiYQe5SfYKg8HMheNSmQVWR9cmX4giUjJ1?= =?us-ascii?Q?0i/SRDy64SOGza0cuwpz0USRSC1Th8YEgJ7TtyxTlJCI3bQb3kpw1MrkmY7g?= =?us-ascii?Q?uXi9eUS0SFIZ4UXjRojq+5dtB2FMnc6G0hNKvyWpE8AayKEHj60RPWhDiCBD?= =?us-ascii?Q?kz0wXv31D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= =?us-ascii?Q?wIVbld9v3WN0UJU+4MvmuxvWk2qgQbBpvTjoa49ALowYQSlGtSVsJ2Ki6/+u?= =?us-ascii?Q?38wSfRgqWHE7DVzzlbxx9FOM6XQ5h6k5EYbvXOuxAw+iiTZ7fFt0SfMFEt6q?= =?us-ascii?Q?RN6za/rcBDT97TRQoiHw6ni1kD+mSXB4sseZyqFjF9gDrUIGrLeJGlxJZeQo?= =?us-ascii?Q?r66PzF1u04vnUFB3dTfvNpsKJ8vrwKFh7cmx1vqsp85VUcBLLtX2Mxy4Sanl?= =?us-ascii?Q?O2GZoREuGQ/h35OZ0y2OF/yGh9/Yomh8Jn2TogFF35AsBVn0uoZy5itunFfl?= =?us-ascii?Q?X5SveWMca5TC8rkS1MqvgeSMKceVLH1CdbzrPN5eFZVhP+J+tmcDIUaSVS4V?= =?us-ascii?Q?uPd9oAGFiQ3gxNVvTiV9Q1tPjoH2rGPateITc1RelrKoKvzr7ddvL55UYV2w?= =?us-ascii?Q?XRaEaCE4COlTd2pKgDI8Ex8=3D?= 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: c9e4ea36-ddcb-491d-1cb0-08d9f635d8fe X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Feb 2022 19:02:18.3398 (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: TUEX4s5FKcWL+zXrqZkdnVRgxwkMmuRcfA1rB7jvtIP7/XvPeMSDrITTMVi+nBU2MA+DQgnccuuXAVffO+4a3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR18MB3892 X-Proofpoint-GUID: 8GE8StSkLyrPBFgazmg7kBV1hCHv41iF X-Proofpoint-ORIG-GUID: 8GE8StSkLyrPBFgazmg7kBV1hCHv41iF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-22_06,2022-02-21_02,2021-12-02_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 > > > When creating the asymmetric session mempool, the maximum private > > > session size of all devices is used when creating the mempool object > > > size. > > > The return value for ``rte_cryptodev_asym_get_private_session_size`` > > > is unsigned int, whereas the variable was uint8_t, leading to a > > > possible overflow issue. > > > > > > To fix this, the variable for private session size is now changed to > > > unsigned int to match the function return type. > > > > > > Fixes: 1f1e4b7cbaad ("cryptodev: use single mempool for asymmetric > > > session") > > > Reported-by: Arek Kusztal > > > > > > Signed-off-by: Ciara Power > > > --- > > Acked-by: Fan Zhang > Acked-by: Arek Kusztal Applied to dpdk-next-crypto Thanks.