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 280B1A0544 for ; Wed, 29 Jun 2022 10:09:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 16C93427F5; Wed, 29 Jun 2022 10:09:56 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 2103740143; Wed, 29 Jun 2022 10:09:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656490192; x=1688026192; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=MekUx9TEoHbkv6lmuFLBnh0vUC+uvm1Ct+ssD94JvKg=; b=NC2RelvItyE7eEDe7J6wkPv2TE1Mw9mF4CmVIscGc/1Fu39KCN9KTa2g 4//URVd1VBOV/GSIxM1C+sFL7ghvQfVIjU8p3khaUh+CuW5ISxbV1k9+s ohoFALwrM2evUCzi3RYnJcpGV6VWM0K6BnBFeYm1Y0FSgQIvTxHDy9ZFr GN9bLwgLcPu8dvevqeJZZDZ/+JRE75HBJ7WD7D8mxzyrRVu6ESI0+a9L4 TBKD9ZKF/RbkrLkyLu791w4O8Nljp4Frc8B7FJxbtHPlhJ5Wu3CxTbvD3 z5SZBZPkGrhqwrUYUytSqlq1vUjWGhP/848UKrS8sv4r1qGS1xcdbJuN1 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10392"; a="261761897" X-IronPort-AV: E=Sophos;i="5.92,230,1650956400"; d="scan'208";a="261761897" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2022 01:09:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,230,1650956400"; d="scan'208";a="733088479" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by fmsmga001.fm.intel.com with ESMTP; 29 Jun 2022 01:09:33 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 29 Jun 2022 01:09:32 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Wed, 29 Jun 2022 01:09:32 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.177) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Wed, 29 Jun 2022 01:09:32 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jlSly6rtYswmNyYdzn1LxFsxHO3Pwrf2g9WgcakaDIk/onnFYphxv6BF+JPyp5xE/bpJ/0JHksvFAGrq2K6ZtfOe1d1kbRr5ZokHITTxLBlzqj922pzGcBCI2kQz6+5r3J7Bx+QU6UJt5A3A7f9x1I8WNCHnjcQ3YhD2dKMKjKtPc/g3fCWJbofYW/XHew0kkC+YxKJOrRfOZ3rubNJV32MMfnR1y49E4BsDlKRFlxpP2rJMJq652mP23o4ERhITVJs1moSLeeRkESugSxYVDEVFwQlyKMmoj/2wvtR6vmtR/qJtmE0kZo9UOHESfHWFWeoa2pON8nYfImMB6eZX+Q== 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=MekUx9TEoHbkv6lmuFLBnh0vUC+uvm1Ct+ssD94JvKg=; b=acg8RvzTgtzQ+uNQWPRLzcSQjZnBMuUhXNRgBnakBM53uYQ0HmO1UWr+NqftYmQbtf/r8r64FGjcbxenh9bZwEQxyBa2l37UrMPQrr0ex9JIdZ7h39kxxGwNsdBFcrlAi08i/y8t8B8g3HJEIp5Tf5HZBjZGwSFDvl5WNVLfWPFMIwz43d+77PcGhQUuAy+rumAIMQQ8TxwbI7wxz+RI3wwJX49b/+VJOfmHls8aEjmz0X0zgSn+Aykw2CTZx8ynH7ZNhKixNqaSfgCSlaCoU0YUyGMUJYBtP3FN1U04OXe/vzwb3SNy0oExMFt5pw53cbQwxnAgn+gx5YcefFfRSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW5PR11MB5809.namprd11.prod.outlook.com (2603:10b6:303:197::6) by DS0PR11MB6350.namprd11.prod.outlook.com (2603:10b6:8:cd::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.15; Wed, 29 Jun 2022 08:09:31 +0000 Received: from MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::6537:6de6:7337:1b87]) by MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::6537:6de6:7337:1b87%6]) with mapi id 15.20.5353.016; Wed, 29 Jun 2022 08:09:30 +0000 From: "Zhang, Roy Fan" To: "Troy, Rebecca" , "Kusztal, ArkadiuszX" , "Trahe, Fiona" , Tomasz Jozwiak CC: "dev@dpdk.org" , "stable@dpdk.org" Subject: RE: [PATCH] crypto/qat: fix docsis segmentation fault Thread-Topic: [PATCH] crypto/qat: fix docsis segmentation fault Thread-Index: AQHYikUqD3A4oW95TEG8WawWek5Mna1mCoQg Date: Wed, 29 Jun 2022 08:09:30 +0000 Message-ID: References: <20220627164352.181868-1-rebecca.troy@intel.com> In-Reply-To: <20220627164352.181868-1-rebecca.troy@intel.com> Accept-Language: zh-Hans-HK, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c54afd58-c47d-40f8-07b5-08da59a6b1d4 x-ms-traffictypediagnostic: DS0PR11MB6350:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RAfzWK757V+CFeHFENZRmCn40sPeEsDNM+S30csu2qIhjW3CewfHFXDYC6qEUByzirXBpXOV5vCUpbn3YfefMqS2689lMLUPX/m3yrBT9XJNP3jcqtSB2/KNtxhhGCgWtvLpT1hJvtueXR6OMqw8l4aopAn9xZTy/JwbJNxDj+OmtM02eAujEGu5n8S0AIdLkU0qWk2pX5BHvYErrYn7Mk1nDC7a7/E8ZkZfvZUW3V94IfdYdn+Ukg+Ctp2jnZmgBcdpHR+dcq5Byx2j6Ni+ww8oLxNPhvCBTOGw7Cv6unNnWn+nUAozKfl4T3uepDfOACssxbuhyOproVKyt1+C5QzYrmUmQGQZZed5dEoMy+NCF/x1gz5KXDw6/CmSCcjny1KqE2ptHiL6/hDcSuLrQfbfcNbV5578DUxSf0tDhdv1Yi9A6pgqEtF3iH+u/mbG8ACNNkhl9KrC/Pq4Fi/6lqWO7BU+wXSq20RNy2cA8RmJrEqXjOZ4nmZvJj0iDlAleD0czTj/uJbyl7RBwXxLMRupw4z5Yrm0S1MbnnonoYSWSiG1l350/hIplnDGMpxp/LO1wSYJQr0JUjEfPDhGoee1vcFtqIgWfP005QF+m+V1HO9OBijxpEbOHLXWMyVZRi270Tdzb3EV1JQ7A9pPpfsf5DpHirQEx2KMAkFQrCXfyaizMUzA/IZ7h7HYHifxsfVEPObiYjUq+6GqftXAOJK6bHk1PxTV6TPUyoamvkNd9PblprFshcntb+I6AjCs+FssnT4aqZjcGRP2Os6/MarKvCJ/H6RrUlRfjXVT5d8= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW5PR11MB5809.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(346002)(39860400002)(366004)(136003)(376002)(396003)(8936002)(450100002)(5660300002)(52536014)(478600001)(4326008)(86362001)(122000001)(54906003)(26005)(6506007)(38100700002)(53546011)(66476007)(41300700001)(7696005)(110136005)(8676002)(4744005)(9686003)(83380400001)(38070700005)(2906002)(55016003)(33656002)(71200400001)(186003)(6636002)(66556008)(66446008)(82960400001)(76116006)(64756008)(66946007)(316002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?EQsg4omoWA7Wj/7m9UTQpM+PCNifDxb+tOV6b9Umlq7+6ukimS64yogz?= =?Windows-1252?Q?VaLtuCB8AsG5arfXnOJxtUpHspSOCMpj6leb0id7lJcr73GbqLhzXRbM?= =?Windows-1252?Q?PAWg260bmkOParpHlOocmXatUlRNgqDFRD54sqRMaNwKEnwmn7vkaJuc?= =?Windows-1252?Q?1/wkJAZJus6j912F2+35cjuWK4ugAu/Z/bFxHK1aHRKAMVjveJhRG6fm?= =?Windows-1252?Q?9CAbwTnoFuqigrjjicq5QmjYB1atoNrM9f+3p49q0tqcl9UDZ9ukQh4B?= =?Windows-1252?Q?YJ0r84rMJ1OhzMpxSFTGUXvJ9kA+L8rcw8x9hgHLp8rKjM80kFBB1Eez?= =?Windows-1252?Q?SlMV08Y8eTjJa2FTFbDDg91mEbRpN+Refbuvyx5IRQzqq+40oc9L0kV8?= =?Windows-1252?Q?69GB4zDKfpKMgxkjv+XKVEdIQQWvMFAOMej7hH87cHH5hQaSq7cBacsq?= =?Windows-1252?Q?/xUAfvE0KvZmTtaikR1Ht1b28OKLgk2Xu/e+gOgvpUOaE3gMlCH3Csus?= =?Windows-1252?Q?nhwb3WVok8hg35khdxznROuseGiA/lFyzdex4t+SJllaJ1JrXbSeX3Zh?= =?Windows-1252?Q?Le9kD442+RgjFSwBOO6xLA2GzXpzOMWg/RCORmOqq8vdOK1njtHwvhD2?= =?Windows-1252?Q?EYHgzFKWKSR0L7mpg7KvCbvp2HxCdkSq6hS8AdCkrqICDBWCB23TBPq/?= =?Windows-1252?Q?xVbN6c4/OAXj9ZHUPt45jKcPBeToBHQnadbbwYUKpYrKlHU9QyqB/txU?= =?Windows-1252?Q?+Ig8DjZdNEteBtSv+q1SJ/G5xsZ5Xhiv5sVkwcGBRRfvsXod8O97sM2A?= =?Windows-1252?Q?gemM5kmBzOoI9pgJnL5fUbq3HhcyKZHcakC9QCMvWaGVZg3hcTBqItrZ?= =?Windows-1252?Q?IHbpQi9XaVniJD3GCcu0BePCn/ROZqMtTZ0tZIwc9Yu9gAXKRhjS7HaO?= =?Windows-1252?Q?/Er02c0Ke0jxYDb846OscBbTtpMiBq4wIg7qhZneMVHuZJn8KC3LpxEC?= =?Windows-1252?Q?Z/n4XPI5XkJIlpgS0eBnoh3IvqrXFmuTNfC3iOs0Voz1YMLVCJNADaX4?= =?Windows-1252?Q?Qv/CUfgmHwj52MPfSLJqtXi3PsS/zLeSH514vFiBMi+F7j91fzwwJTUk?= =?Windows-1252?Q?sX8lHQz/AhQZSaqPyt9qAsZFsLxWWhjdxL8KQ8J7z+tBizboAlUhvnzQ?= =?Windows-1252?Q?fAPX/3+ocR3zc+ovjWHbe5De18yfc1Mcp26Z+M8olus3CHfaIx3oZsx8?= =?Windows-1252?Q?Ccwe/2eC+BB3EasvHiBHLtiQnilLNMCr0MSy50HyhtEBLWczkEc/zGWl?= =?Windows-1252?Q?x+y610RdXD3NGQwDnuZrw1qZTzulJc26LlYU4p7aWQnYcuUZ1bZmuoUk?= =?Windows-1252?Q?J5sYeg/w1IGAzX9b12MscJw11qXsdz3+eszRk67SLKsTeLpbthhTCllP?= =?Windows-1252?Q?ea+63k4H4FydkRnubSnBmvA8pR66K+5cxJ8mt7zy6InLFZwReyTuoUKr?= =?Windows-1252?Q?LM/7HXqp6gePVi3vNlBCdF9Lz1ozNWXG4ALv4CsLV9FDDyudKjEKFfCj?= =?Windows-1252?Q?nvhXOfULzSyb9C3LyqoSIuuQCGPGaFTm0iMsbbrYVQ4dhcaSYoYTrQgD?= =?Windows-1252?Q?lFh5aGy6Jbe5zL/UXcHMjBnft3onE2nsQsA1yo3Z5LkuQR7Jcw2EwDJd?= =?Windows-1252?Q?4N6HgGHy+oKI5H6j5m2OXl6DKJJcdb3z?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR11MB5809.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c54afd58-c47d-40f8-07b5-08da59a6b1d4 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jun 2022 08:09:30.8940 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: enCtayn5Jh3QMRF6sKRPAIRA24GA2elZfxeKk9eKta5TVmrWtytEbqsRC81AKyLi9qJe+GuJ0+wG7CxkgyYvnw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB6350 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Troy, Rebecca > Sent: Monday, June 27, 2022 5:44 PM > To: Zhang, Roy Fan ; Kusztal, ArkadiuszX > ; Trahe, Fiona ; Tom= asz > Jozwiak > Cc: dev@dpdk.org; Troy, Rebecca ; stable@dpdk.org > Subject: [PATCH] crypto/qat: fix docsis segmentation fault >=20 > 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: 98f060891615 ("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