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 36B45A0547 for ; Thu, 30 Jun 2022 06:29:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 290264114E; Thu, 30 Jun 2022 06:29:47 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 35787400EF; Thu, 30 Jun 2022 06:29:45 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25TLajvd006237; Wed, 29 Jun 2022 21:29:44 -0700 Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2049.outbound.protection.outlook.com [104.47.74.49]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3h0kgcbw6e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Jun 2022 21:29:44 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SKuaizXYtkrTnmwFGQxjbE0Cxo062aaAI5fwuMEP6iaduTlyWBU2hd5acdB3UNKA4sJCYDU/6zGcP/YM5gkrWlEgGw8du1nGBpNha/IcGQSimrZcIl/SATSd8rSN85jbvmrtacrZ1BgmnkjJScY/M50raBbORkv7CHdvQIje29hfHjNmBGviYamUmeURaQW855UJeyMOVwY1Rnm+NcQApqPGB26kZVdZ26B+8297GIyjiUorF7h0J64vgGq/nyxfb4cwySMRGsBXBnVOwC5iFHxpDxowPDmtkBAhWFJoYzK+v0PsXNUuYnao9xUTEkrN/rUo4w4R2FQ5bVA1iATsnQ== 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=d7LyQKlpalo0FAZ/jEm5U7dHEjoq+S73MdFK1F5aGOY=; b=bufLKW/6d5QFt0eD3ytSluIhIszSiT+NKENYAF+ocHKZpMTT+NIyNJktW6JSBf19YFkl6AMKAEddRZEWHtujhidBgr2CjJorkKMVbP6cI5WaV311VZojs+Kk/efnjrSu1cwPYpfkUEIQE9bIK/GqhRyb7Fc4HUtp2QYEYP2Ijnsl3rP1eH02YtE4l0rCueVxcIaPGOvbY2Nm51jPp6Edj9xMnhUG2FeQNVBEzyetDAKC82swVwvm4I0dBeC8KmQCdRw+KilclcD4P1O6ERq45kY+D7STFaSmYk5lZb/D4jL/4ZNEMgN365/x+nszKEtyeuse9dDEYFfjfWy0N60Mig== 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=d7LyQKlpalo0FAZ/jEm5U7dHEjoq+S73MdFK1F5aGOY=; b=ldPNjatf8dbhe0t7GxCECkja3q3Qtno5gMx23tBR9Gmo/8dIWvnlpv24Sf2oMW9n3xMYGI57pM5YfhHgT4zHphIkVeLiHeSgwnFGFJyqH8DaEXRObn4d8KbDVUifH2dboOY3c7yMSMddZbl+dbE+WTpmu/z5vzc+MHfZ0PCTiPA= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by MW2PR18MB2123.namprd18.prod.outlook.com (2603:10b6:907:8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.18; Thu, 30 Jun 2022 04:29:42 +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.015; Thu, 30 Jun 2022 04:29:42 +0000 From: Akhil Goyal To: Rebecca Troy , Fan Zhang CC: "dev@dpdk.org" , "fiona.trahe@intel.com" , "stable@dpdk.org" Subject: RE: [EXT] [PATCH v2] crypto/qat: fix docsis segmentation fault Thread-Topic: [EXT] [PATCH v2] crypto/qat: fix docsis segmentation fault Thread-Index: AQHYi9MgbPC7Ryx/L0OaV4k/VakxR61nXEYw Date: Thu, 30 Jun 2022 04:29:42 +0000 Message-ID: References: <20220627164352.181868-1-rebecca.troy@intel.com> <20220629161037.94805-1-rebecca.troy@intel.com> In-Reply-To: <20220629161037.94805-1-rebecca.troy@intel.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: cf77206c-10bf-4499-8a54-08da5a512729 x-ms-traffictypediagnostic: MW2PR18MB2123:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rPZ04ne4813i6JBzw6BJxyBfnh+Gd++D91KR7smIY0YNk2Ydw+Oup5jusdMtulnHEvnEr1XDpEOqosK+4v5ZhZDHBNoK+OQYPJVsZt1/kesqDZS49zPRFD/hEXhIMEk8u/BSa7TSxnYViXUFq1xJM8XW89MypaHs9iz7+KWOOAQPO/BdCWpsuUtQ4SgbvokFr0cz0aq9eseERdqUy6ev4VtlxZL1uiSRMQK0yk36Z8jKDGYvuLFGRM+IuzL0DtMGq5FXywILyYD0RO4czxo1JJw+NLv/70mLfWUeAULYeb1i63ZfjzvuDPFVdo2/KZ34H7aaPIJ6meLKW5nkUDtUMR2S7Tyx7N5ULddUzteqcKAKYC+IM1+7yGXex1et5S8mIdH0AyBkNLmT4rUcflUHqdpCH0ykQnd2IdzP+1XpduLsZQ+i4vwGd8OI+RQCADO18H2gVyML+aI8CKLxpBFibUpXC022ot2CvFSuu2Wnrb2kl5XXNjGtwF38Hop+TRt7+xpkCUr/cGwNC4NAV2p33sK2+N+agXlUb+ZDI3YsT7qdrNEj8OGSegcXvHe0a0/ULe++diCMgx3Ka0BRRPxfqK4X3Wi8GJnbhmk4frwO8MsS9nCcTNOaYJ9zJpI55pgEEp5W7vJjTCiRI2sGEMRNpSDTxrPLKmd8SI2tMfQCqwRHnL2RjJX8dlJ5+zP3dkhqdtAhhWVT8QDNWFkEiplj26jRAkVNvomJfVBhN03lpW3ez4VUmbsACTBueoK2QEXmbn6JOdWv+wVVYD70Ke3CRfzR18F3wc0NMbsiSGQsAccb2WnQw4C2NeczZsvOFqoC 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)(396003)(136003)(366004)(39860400002)(346002)(376002)(33656002)(86362001)(66446008)(66476007)(38070700005)(478600001)(9686003)(8936002)(4326008)(76116006)(41300700001)(122000001)(186003)(7696005)(110136005)(64756008)(54906003)(66946007)(66556008)(26005)(71200400001)(316002)(6506007)(38100700002)(55016003)(52536014)(8676002)(55236004)(5660300002)(4744005)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?gNrM6KDm4q/85BGRLYM1+heBa5TZU728jHncfyM8GvdY55Hc8GBlgxd81fO5?= =?us-ascii?Q?hLSs/n9OMWvV5LlsKGnFqOB57qE2Y6Cy6WIt9XlBG3euSi2k7OKsYo/qtfF4?= =?us-ascii?Q?rYPTpRlwoiMimlvqVnJ16N1DHOkoYiN0kLU31036UlsB5p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/Scm/S3YGm8xeaTnUjmWdpWfkxKNKK2pPrA1tjuvGGiPsj+Lf3wmagW9P?= =?us-ascii?Q?W262tUFNV+HCRv68c11vTJ7BUQfjAsLAt2q9W4sx17lqZ4m1qgqv7qblL+1d?= =?us-ascii?Q?2YMP4pn1aFx4ylnyDRNEv7KmwFVmCb0By+nBdkGMbO7H3u5UIG158NVtMhb8?= =?us-ascii?Q?Au5VolQz1UCNDROboQ6/arwHkdkg2cyyZDgvkiVZVDUO2T33AgBC3joVSy3+?= =?us-ascii?Q?cFQOkpWPysSZ6YK8WUN552iY2/84gVaSvqGhNL/C6k4mJdi3hyjO+ibgZlCe?= =?us-ascii?Q?YGPlsDvzf4C5sGyLDjGnGqtyMyLv8xYfobbxduLmsY8tfjzQ/0L2U97S2sik?= =?us-ascii?Q?5ggX0pX/OFl2XTBe2rQfeR3HkD+myx4lkKMx5X28hGXp4DN+ZZ4O7X4o/hjx?= =?us-ascii?Q?G9/CSrM8GFTRXiH9vssgDw0+xYWfsn9pJHfHatwJjgIPI5UzbVFTn6BVIskr?= =?us-ascii?Q?ozorMcs1RF632OYU8SutOGWKHPj0J/jJU4ZrrGeXubDeZuIOv42Q+gsp3PXV?= =?us-ascii?Q?R5Azfa4MuvN5YMpzL+jxD6zIbXqxEA6/fqIEvvIU?= 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: cf77206c-10bf-4499-8a54-08da5a512729 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jun 2022 04:29:42.2075 (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: GA407iAm0Rx2dY2V49zyVtrYqYXcP7J+jxRD9DCYRDjGuxxua8yWazzUX9V58r3A704LhmRAtXO3ZSW5A7Vm0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR18MB2123 X-Proofpoint-GUID: tmUwebezHJah8qJGg6ktghE0PQk7858P X-Proofpoint-ORIG-GUID: tmUwebezHJah8qJGg6ktghE0PQk7858P 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-06-30_01,2022-06-28_01,2022-06-22_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > Currently if AES or DES algorithms fail for Docsis test suite, > a segmentation fault occurs when cryptodev_qat_autotest is ran. >=20 > This is due to a duplicate call of EVP_CIPHER_CTX_free for the > session context. Ctx is freed firstly in the bpi_cipher_ctx_init > function and then again at the end of qat_sym_session_configure_cipher > function. >=20 > This commit fixes this bug by removing the first instance > of EVP_CIPHER_CTX_free, leaving just the dedicated function in > the upper level to free the ctx. >=20 > Fixes: 98f0608 ("crypto/qat: add symmetric session file") > Cc: fiona.trahe@intel.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Rebecca Troy > Acked-by: Fan Zhang Applied to dpdk-next-crypto Thanks.