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 028E6A00BE for ; Mon, 7 Mar 2022 17:27:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EAC96411ED; Mon, 7 Mar 2022 17:27:07 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 832674014E; Mon, 7 Mar 2022 17:27:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646670424; x=1678206424; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=cWCK0Vb/Y8z8bJOWKU8dnLcbx3XZ2cTyOBdITFQC908=; b=LG3InibuXZL+H2VNTHHufFtTKSterzhaeKntPWg7hAy+eWXGh16w7cvE 6gj9ufqMkHjpy6HUSfI3Bk7AtA+vv5A4kiv3mvIsYue4jgD+zbkcv3TJI AC+t93azj22NMKSRAEMBxCKmVLajvOug/6cPZvdjNv4boDm49tBhUZoTI D/WjRBrNSkiYOtyIwZOiBEAnbI7cKWtzOOlcet2/Yef5teGslkBjCpbq8 DlYckXw1dlXWV3zloHAzpOuHwVxDeUOZ2hxZGnFodsUyRO1Y1a391k9AG BE66j5CDFWbQyLWNi0JuQj9vuFK8B/xfrpWfgtdyGoYyGIlXgQFUd6P46 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10279"; a="340868646" X-IronPort-AV: E=Sophos;i="5.90,162,1643702400"; d="scan'208";a="340868646" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2022 08:27:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,162,1643702400"; d="scan'208";a="553222411" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga008.jf.intel.com with ESMTP; 07 Mar 2022 08:27:03 -0800 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Mon, 7 Mar 2022 08:27:01 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21 via Frontend Transport; Mon, 7 Mar 2022 08:27:01 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.173) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Mon, 7 Mar 2022 08:27:00 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EE5YeiTXJrL/8/ddYVTC2KCPmOsSDcFSsQMjWatzqUwnMq1a3BkDoo8Cb0dXLERJ5Ljo9DdPsZ3EctPgF+R6WcSxcmsBAEX6omMxSp/JtjS5dKFPR77Kex2X1sA01ZiBc5U6pLb4fnDdovvSNmNoF6v5/LEYMS9p0OCgNCIzQKZkyqvlJ4eGTS85S0Z3dMy2YLh1yT5STSXHB2uj/8kxrq50ntSmYO2BYOz6sWItZnlvOD+07/Xd7m9KbkHeiOR3LU2WsjIUdZp56d6yMUFQQrumDox6aFQcTq4JZ7ZQbcSNv0lVsfZBiIXO0K+qHuGBMRCVghBhX45Ff19C8ZVIzA== 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=cWCK0Vb/Y8z8bJOWKU8dnLcbx3XZ2cTyOBdITFQC908=; b=ccjgGNREEz0sba4rykGOyrUKurbd+NyIKHGfrn6RELxhrhC5SOmyAyxNnr3mKV2nslaLgqH2zuIuoWZM9SY7lDnZ7l0R5PaoBhbVuyxx9mEwx9RsQ21US57c3ac6huaWdvuTv8+pWHeoIynXOmz7nebPtU2NyXyRLnVKTLc3KPGk6qMAIbKQr+We02rlWYzlWCpXc7AFrWHq2oxvCoScwmSykq60ccXVlFhgcK/o6DsmcfAEcgPgM1nHYjZtyWp2UIJJ68vS+eAq8kXqLIlSs0gW5aLW4LLIWsmKcLD3OVe4SfbH0hfyHJhd4TCOydVD18JPss2oJ93lJ0ZbUFL1xA== 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 DM6PR11MB2731.namprd11.prod.outlook.com (2603:10b6:5:c3::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.16; Mon, 7 Mar 2022 16:26:58 +0000 Received: from MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::6d1f:57eb:d623:5e0c]) by MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::6d1f:57eb:d623:5e0c%3]) with mapi id 15.20.5038.026; Mon, 7 Mar 2022 16:26:58 +0000 From: "Zhang, Roy Fan" To: "Bronowski, PiotrX" , "dev@dpdk.org" CC: "thomas@monjalon.net" , "gakhil@marvell.com" , "Yigit, Ferruh" , "Doherty, Declan" , "stable@dpdk.org" Subject: RE: [PATCH v2] crypto/ipsec_mb: fix usage of untrusted value Thread-Topic: [PATCH v2] crypto/ipsec_mb: fix usage of untrusted value Thread-Index: AQHYMjjFj3Y1xzA3cEi4qZvtqU0tqay0G8jw Date: Mon, 7 Mar 2022 16:26:58 +0000 Message-ID: References: <20220307124802.1371808-1-piotrx.bronowski@intel.com> <20220307153233.1407564-1-piotrx.bronowski@intel.com> In-Reply-To: <20220307153233.1407564-1-piotrx.bronowski@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.401.20 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: 5c5bda01-2793-4bd0-219e-08da00574d25 x-ms-traffictypediagnostic: DM6PR11MB2731: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: zKw5vN/qieISJ39LWL4kvt3Bej9sfI2OvKortJP5nh1kkuiFWtljXrSuRc3s+AEP3bXb2qHzZ+8hiEt4ZmY6FMvWCSExQ5SJIrLGVCwQ0IlwJQVy61mwwT3ZH++LH7umdMadM0viWiaQiOlcqKH6S53GHvMyg2EaltGQSl/vomCIE48ZDBVKCnjlyHr7Xkah1ZTMp/jV7sDEgu3VeGW1w/6aXblz8aqG/zjEB7Gini7Vx7gyyqiiyvFFGRCEbih9cXyR5ikudMD6DWoH9gT86Sk7U5K9OSWppwLfVvdV7u+7jjJMd0eMxCJwy4X5VX7IzifJU1IzJAF8Csuu5dPkNBpgceXSw3D3BlOjlwI9oAXVVSzmgK4lsyb6afVCsrIvoPSV6cpK++pkNUaCjgtRFIM94hbkANEpKF6lPpl/63Hat/D1O8oCOemZYJjWk/ohuGH4vzGXV8k/jOXznXhb6vISNtnsMddc1bA3oNQhTARrJKEVnoCL+YtifPPrJpr7CeuUpqgeo1OAa1Is5t6t/C5uM1kQJndl7qcJ5sVcur/+NvkkNC2aCtnOOhBrB4FDmi+4bVAML1H5qpaXZsmOYaOVGG4YHRy6ugpAZ8sjT5/3yXprqM1I7lZQx/Qok26kYEd73wnCTaKa90nzovAFFdWQd4B5ZT1o5FeL6tDSKdlw+EXa9hBUwXtBBtnCkcJ6Dug9n/z8dUTCb0NZHk2PDQ== 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:(13230001)(366004)(83380400001)(33656002)(53546011)(9686003)(316002)(38100700002)(54906003)(186003)(26005)(82960400001)(52536014)(110136005)(66946007)(122000001)(38070700005)(55016003)(71200400001)(2906002)(5660300002)(86362001)(4326008)(8936002)(6506007)(7696005)(8676002)(508600001)(66556008)(4744005)(66476007)(64756008)(76116006)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?/A5rXu0OZdKgfhGsbve0y4ZsS4cxjXvcyvLdt5ZVb9fnCkoCLI/fykAi?= =?Windows-1252?Q?Sc8yOfzbNEx7tb/oaLM5RNKrxGMJXRZ6dyk4DJcF98ivZJSNOUwDbQNN?= =?Windows-1252?Q?+Ew+YsFe+2iLssUz2iVQSQeTthynjFocRakHp4a0r/o3/HLMoKD6hAR6?= =?Windows-1252?Q?VpWqOYd8SdnbIn444jhpWP27hZBe/eHejUsJ44GRzBfPmjh9Ep423WUx?= =?Windows-1252?Q?LzD9I2ezV+6qrv3iRxKrPfaxCsuiLKxTjdfaMKv4Zmx+KKJLMlfXMHQH?= =?Windows-1252?Q?GgjeTSKr61MG2uMdRML42Tthq/OwIA9zyltTeiIF0QdqFH19UkgRDtx+?= =?Windows-1252?Q?dJUu/g8mQMltQ6602WBBrlJAQid+Kp1vl0q07E1qiqQCIssy27Lq2zet?= =?Windows-1252?Q?hwNHU1Ljc6gGW8o9aHjI6aoCgox/s0QmeVcZADOwCf8lfvOG40496gVH?= =?Windows-1252?Q?XmGU0Y5b6F6qdrFCU6ZLxqKEpGOUBQX7a+1tIA+jbCDlo6VNA8DfUZ3W?= =?Windows-1252?Q?gMDujgAZIxKs3eo+WQXo5iN9Hrlva7+RGHouQQUfbCj97qYpP4foiCRr?= =?Windows-1252?Q?CCWWpmWC/x4rbXqi+aomZorWJsAoImanxNOkNTplV/opDcvHBhOyuj+q?= =?Windows-1252?Q?GLteEHjZhBddDEzzYNqWxO8BTgyTGzhShbVxCUuAFLklUR7UAIX1D9Gf?= =?Windows-1252?Q?jW41vWSOer7f6Fpp7zN+auDyRCaYVQWXqWweqqgQcmcnbwb5hkxmozUt?= =?Windows-1252?Q?T9M2SZk9RYUwudr4rTGtxzaOkQu3/RhsiMvEHJfa2VAdeMej3hpyQOEb?= =?Windows-1252?Q?C1AcCYDmhzPS33eifaptF+4L51Zic1GtGYIntEYFC0+YYVW0xJ71r52n?= =?Windows-1252?Q?7DqY5jaabyqsb3Zsc+OhrqNznszl0Rr7VEtDlmGrPF7ufmz7Szg9Nitk?= =?Windows-1252?Q?SJwr16lRjFbx8bu/5ZUzT63UGecLbFbCViqAXSlSZlu+SuXaMuhl55mW?= =?Windows-1252?Q?lutkHv2ONoW+BMmaWYEeA2xvMlQ0RnLsif4nvSDaalk1pzESrY24NV/I?= =?Windows-1252?Q?R9GewpsF4lZSK0mjkDLBwJSkLegLajcfyhMv2pir9XhXhOb+MaJ55NjT?= =?Windows-1252?Q?x+Ml1EVnlB4CgzLJm/HnnWiQREBBcfp7PxM4w+dwy6uTHsUPvS1dzf8+?= =?Windows-1252?Q?3QxUCNiWe2xuxEcsbVM2NG4Mo3nFaBj5mecvX6iIKgcKo/CVtGFsdL+P?= =?Windows-1252?Q?SPYqSAcMIAp8ifR+dKfX+vw0ICeUv9ZV4lH8cSLTyJFBK7IZBRVDkinS?= =?Windows-1252?Q?PvXEmko+KGKb2/BFkHEeOUThWXg8fU9579mo7xzdVONKHC6SR/tlcZ3o?= =?Windows-1252?Q?FZGc20JCcJmDrXomYBCaNvJYoWrSgSgoTBOQj2DfuQ33csqSoxRhoq3d?= =?Windows-1252?Q?eC2ObvwQOb7miPhxXKk8F0JRidDQufGYzYHL1IlAke6apuC9AcrEipEM?= =?Windows-1252?Q?shM0+Fnd1pzUc7xLhN9NurH43OJuiDNJm6oQEAIbJsl0uy+nX8Xqd66o?= =?Windows-1252?Q?KhyOGFC7M/0afeUCnZ0l0Pkzl0MG1FUivZCusthL8SpJPywv85IgeaFK?= =?Windows-1252?Q?apakoEKTRcV0vNoQc42etRcr/CtksQG0ZBeFgJ7Fuz49QRe/UJpdHLk6?= =?Windows-1252?Q?TtMLk414GXoUIXnzsbgWz6NXoQu7Hb00CEjSCqg8gvUDKFuLCvCRHg?= =?Windows-1252?Q?=3D=3D?= 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: 5c5bda01-2793-4bd0-219e-08da00574d25 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2022 16:26:58.1374 (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: X17OXPNcqdbAd+DifzdzrFKF/qhNpPb6nARAYNvW+G0Pi2W1gxM3ijHYRfh21pLwsDpzNfSNofGLaEOG4Jqo+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2731 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: Bronowski, PiotrX > Sent: Monday, March 7, 2022 3:33 PM > To: dev@dpdk.org > Cc: Zhang, Roy Fan ; thomas@monjalon.net; > gakhil@marvell.com; Yigit, Ferruh ; Doherty, Decl= an > ; Bronowski, PiotrX > ; stable@dpdk.org > Subject: [PATCH v2] crypto/ipsec_mb: fix usage of untrusted value >=20 > This patch removes coverity defect CID 375828: > Untrusted value as argument (TAINTED_SCALAR) >=20 > Coverity issue: CID 375828 > Fixes: 918fd2f1466b ("crypto/ipsec_mb: move aesni_mb PMD") >=20 > Signed-off-by: Piotr Bronowski >=20 > Cc: stable@dpdk.org >=20 > --- > v2: use a different logic to check digest length > --- Acked-by: Fan Zhang