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 988AFA0093; Wed, 9 Mar 2022 14:19:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3257A40687; Wed, 9 Mar 2022 14:19:12 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 780C940395; Wed, 9 Mar 2022 14:19:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646831950; x=1678367950; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Ip01kWliUp/uxKtQST6TLE6SSlsp8eMM2IAr+bHlwWg=; b=HybbtyhbSHGDmc6JTmW41d0mD8eWMaDgBV5B2cScH7x0IKKjZkcwT6yV 2bWIWXv8aQ0sQ5yB21rsZAU88AV6MlCjIImI9RZA0GUbuTn+yAmGY1Yj0 UJdK3D8SKUvcrSxbGNCUtiLUquqE4V7nYU+ZrUmpbd0VnNGa1Rz+3dBOZ AWfLiNkajZxItITGHxrt1q1TJrIDIvUQDxJofz7OF/7sX5m6quANmanp7 tH/48QvrDoWqcpgT5SlSbn9e7wRBf4jGm7ndVo0UJhA5q0U+TlPhrZfmv YJ2y2B36ikl2hHMbO9r4BJBd2TC9DwPlNI8sEh0lm+kyJiQh9HxoUTSIg Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10280"; a="315688978" X-IronPort-AV: E=Sophos;i="5.90,167,1643702400"; d="scan'208";a="315688978" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2022 05:19:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,167,1643702400"; d="scan'208";a="781081695" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga006.fm.intel.com with ESMTP; 09 Mar 2022 05:19:07 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 9 Mar 2022 05:19:07 -0800 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 9 Mar 2022 05:19:07 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21 via Frontend Transport; Wed, 9 Mar 2022 05:19:07 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.172) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Wed, 9 Mar 2022 05:19:06 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JWwspF6Gwy8ZfQIKWSWIKZ0PJREtTfW9wimxAz1e6AIU40ZYiM0E1821lqRxT9s2536jQGwuesABgsZ+vPtcLG5r6brATr+1E7l+eDoo2Np82rq54kEQzXFg/wRH3YeCte+BBcJB+p+rTdXyM3Y8ACBdt2ML/MXYpTGdkG8NoweWsqPuh+GpbYvQ1nBuP0CI0UYHKpATsXauEIcLEGFPI0QX9pwpfywUt5o6RwCCSaNI8Xqsae/vT4q0w6k5iwODbDvhULRDm3jdCHb5HUzkcpvMKYb5eZDh6Fb6H+zfC2yKT/UMkvy6pIyBuJHha21HJDuMx4DNK4BZK52zzLGO5w== 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=Ip01kWliUp/uxKtQST6TLE6SSlsp8eMM2IAr+bHlwWg=; b=B/wyE8MqSLz42Yb1EW9URzI+KsGbCY1XjrzjRZTqb89A/dHxb7K7Miggy0kcJoPWc+PpZ6Dg7rKuM4emuBccCyzA9P3qIatwSKnEvjuKV40PgrYKiq2yS33z8PfAhQSPW6VGRTm1trytl16Nx4BbHqQQtOOcy7iWlu42GBGwdcoXSzfQkiMOne/FbYBBojLgyI7BomGdPo4JKk8dUlXYjjqqGv1wqeKvURAs7JPNRLHEqXN6kwxIVAdSiAzyTpuzYYN3DQThiXKT46A7uREd0Vbaairqhsph16UqqtYidK2hIcqE988gTu6rwpmCilMx9D/eb1myQgZ7cnzKjIDwJQ== 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 SN6PR11MB3408.namprd11.prod.outlook.com (2603:10b6:805:bc::22) by CO1PR11MB4977.namprd11.prod.outlook.com (2603:10b6:303:6d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Wed, 9 Mar 2022 13:19:04 +0000 Received: from SN6PR11MB3408.namprd11.prod.outlook.com ([fe80::e001:577c:6a5a:c1ed]) by SN6PR11MB3408.namprd11.prod.outlook.com ([fe80::e001:577c:6a5a:c1ed%3]) with mapi id 15.20.5038.027; Wed, 9 Mar 2022 13:19:04 +0000 From: "Ji, Kai" To: "Zhang, Roy Fan" , "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: AQHYMjjn2w9LUeDBpkeIrROBz9Krh6y0G+MAgALv6OA= Date: Wed, 9 Mar 2022 13:19:04 +0000 Message-ID: References: <20220307124802.1371808-1-piotrx.bronowski@intel.com> <20220307153233.1407564-1-piotrx.bronowski@intel.com> In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.401.20 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: c951ab6b-3635-49da-22d0-08da01cf621f x-ms-traffictypediagnostic: CO1PR11MB4977: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: N6cu3oKTALsodW1IF1TpswbfyW9dyZv3oIPaG1K3zX7m5D5NpxgaqmpP3Iw1c20UMPbAHCYS4UQNcgS1oo5gj26JqxdMfBjiiVyQitgpvqqPa0Emm9rPJiO3GDiqyh6hEX9EZohhllQWOv+oLmTjnHCKwcb3Gpc5Yn4HJesF5ya5t6SKTgh86QB04pVt7tyOZzS80IoaCSUeGSdqEYdsewfZBT4pAoI4R2XIoOUxU1T8ctEas5dNzR5/BoRKoz25WXUb3FNDWHS2cX2lMmfWmiZIqjBrVczx3wkNCgo5dNsq8SmRdKXDueWz2XI5Oh8X87wy393lXq+L1RtvjbokdDSCI9o7Navvc1f1G5b1dPcquRA1RjKrf1/p13NEakBO3cARNR4eAC7vbDjJBLjrqLzQ7UIj3tTT2/j0LMe1PzINGH9vngdajVDVF42dSCjXguYF++RcvCKDh+752zPDjjhrI+9RBadfBHMyxPX751nxN9i7rl7j+Z2iksQguDhwzYMvgIvHDsGsgK8gp3Z7pitiJFsN+zCrCslyCPuk7o2KDhNNeFake08ZC0pO5TMpPe7cqqeuuLv/1CHhtbzlITKOAKN5JsigpoPLiZf7crZ0vW71p/4VnbKQQ5ItP2Wtl8U14b/oeYHWLAaQL24yApWN3t2FwAFv+oRrbZKrlYx5VtUu4HJCNAdSRWEIet/yaQqwzXi5axADVmzJ4y4BJA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3408.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(5660300002)(8936002)(52536014)(38100700002)(66446008)(110136005)(38070700005)(82960400001)(26005)(186003)(83380400001)(9686003)(53546011)(71200400001)(6506007)(7696005)(508600001)(8676002)(66556008)(316002)(54906003)(66946007)(76116006)(4326008)(64756008)(66476007)(55016003)(2906002)(86362001)(33656002)(4744005)(122000001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?uRnMj+ntFgYFLimVphYGEX4v5qqHEfg7/ExCo7VvvoWr8Fyfy4WvFO99dwlG?= =?us-ascii?Q?/ne2tqSx6lZfYSSgU3XmRih/xvMrvivv1WdjVCJOLmFFbOR9jflg7WEE30Hr?= =?us-ascii?Q?CMlMHHj4TXDmpXC1p3QAgADacovMT8EDvkaeiE83CsCIDsCjPzH2nDo1m+ru?= =?us-ascii?Q?IHyAfUIQaKG18aemTyFH8pMdoP2RGenWunKwLdpqxkhc0K7d5TR+InHuTAk4?= =?us-ascii?Q?kGkQpMtUqE7zkoSk6TcFkrNnqjY+Ea4hIIqYnMhqsLHvJJV1W9DRlSgGJc6Z?= =?us-ascii?Q?yr4M4vPfQsYR/Q+XU2f66ymIIxdJ5vgTTD27LUiAPBbq9Tc6RlWzwfXv+x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s2KMPiF8wmf0+78vhUhwVFMRGz?= =?us-ascii?Q?8knpbIB8lQ3hBfbmu52aonz2YH6W40IEV8jfjTHRkzxDm4kdlQoACcsEUse6?= =?us-ascii?Q?MaCbVEOBHj7qV3xGiutbkYrQWhYb9yNRqZuvIowFf/breERCERLbKb/ed5lP?= =?us-ascii?Q?7Pc0dp5/CZmdYJviOnop2SMAYIOt8WhFhyaGhnawNDvjodG+klUe2lFAg8PH?= =?us-ascii?Q?cmpQWNt6/7bf687FsWe9Y4RsZI6I3XqWccBgIFICzpSBnD81ZJ7ZOIc+Fqlf?= =?us-ascii?Q?Dz85sFAnLY1VdfQjbFodRszUVNbC0bi76t4ZYPMeJpJu641EbNktGY3nwiSh?= =?us-ascii?Q?RL8hx1YGC7Jc2OQMm1b+JDg51Lh77Qa4BORpbEWSBUXGJ5/cE0NnSNA8ld6h?= =?us-ascii?Q?8f3UtggsMjrNQMqSHdI7nOE=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3408.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c951ab6b-3635-49da-22d0-08da01cf621f X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Mar 2022 13:19:04.1631 (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: lrhqLgeGyeIpXzx9ZmPv+ND+hfRrwcwGPQByB4EQaO8NvYSALMG2MSVGBYYoqP5nNavmnJFmVLCIiIxklj1UBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4977 X-OriginatorOrg: intel.com 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 > > -----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, > > Declan ; Bronowski, PiotrX > > ; stable@dpdk.org > > Subject: [PATCH v2] crypto/ipsec_mb: fix usage of untrusted value > > > > This patch removes coverity defect CID 375828: > > Untrusted value as argument (TAINTED_SCALAR) > > > > Coverity issue: CID 375828 > > Fixes: 918fd2f1466b ("crypto/ipsec_mb: move aesni_mb PMD") > > > > Signed-off-by: Piotr Bronowski > > > > Cc: stable@dpdk.org > > > > --- > > v2: use a different logic to check digest length > > --- > Acked-by: Fan Zhang Acked-by: Kai Ji