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 0E07AA04A2 for ; Thu, 24 Feb 2022 04:25:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 00C6A4115D; Thu, 24 Feb 2022 04:25:53 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 4A4EE40DF6; Thu, 24 Feb 2022 04:25:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645673149; x=1677209149; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=nLv951Ia6BbriXkUCIO6tCaBqg7JnBb91mXMugZfbeM=; b=WqdxXbhNrUPddUKygnMOp/PzaHg3o9tcbPtmFVyrsv+gof3exbcgYhZA FeeyKLVnCdTlKc4CpsT8NcSHaSS3vnV9yJcqOqHa6ANdpBJEI7m2CL0mT aZPTw9qwwkdMJlg8/jDboqWJH1/pqkRgchdYN3X81cSJa9bZN1djlITp7 gNlepQ2hNQcLmhGxtEAt7Gs2JCaqv6kBZUy9xEt1oAFeN9z7/XFfKm24D sbrR7dEG6tDeNe4piprcxqeHemUDVFc8cKUaSmaYq11sOJ1MUtcPyQDcf wWl4X5mj4YnUN8hRl+r+jPvb65nNHsOMKmygFLnIQRoQ+WGhNNRflPtVe A==; X-IronPort-AV: E=McAfee;i="6200,9189,10267"; a="338578664" X-IronPort-AV: E=Sophos;i="5.88,392,1635231600"; d="scan'208";a="338578664" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2022 19:25:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,392,1635231600"; d="scan'208";a="508704535" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga006.jf.intel.com with ESMTP; 23 Feb 2022 19:25:48 -0800 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) 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.21; Wed, 23 Feb 2022 19:25:47 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Thu, 24 Feb 2022 11:25:45 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2308.020; Thu, 24 Feb 2022 11:25:45 +0800 From: "Zhang, Qi Z" To: "Yang, SteveX" , "dev@dpdk.org" CC: "Yigit, Ferruh" , "Xing, Beilei" , "Yang, SteveX" , "stable@dpdk.org" Subject: RE: [PATCH v2] net/i40e: fix unintentional integer overflow Thread-Topic: [PATCH v2] net/i40e: fix unintentional integer overflow Thread-Index: AQHYKR05rGntW0+oEUSNtJNhnIe2G6yiChGA Date: Thu, 24 Feb 2022 03:25:45 +0000 Message-ID: <23342a6ade1d409b9b6b879b3cf170f3@intel.com> References: <20220223064147.3512888-1-stevex.yang@intel.com> <20220224011722.3585748-1-stevex.yang@intel.com> In-Reply-To: <20220224011722.3585748-1-stevex.yang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.200.16 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: Steve Yang > Sent: Thursday, February 24, 2022 9:17 AM > To: dev@dpdk.org > Cc: Yigit, Ferruh ; Xing, Beilei ; > Yang, SteveX ; stable@dpdk.org > Subject: [PATCH v2] net/i40e: fix unintentional integer overflow >=20 > Cast 1 to type uint64_t to avoid overflow. >=20 > CID 375812 (#1 of 1): > Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN) > overflow_before_widen: Potentially overflowing expression 1 << 2 * i + 1 = with > type int (32 bits, signed) is evaluated using 32-bit arithmetic, and then= used in a > context that expects an expression of type uint64_t > (64 bits, unsigned). >=20 > Coverity issue: 375812 > Fixes: 5fec01c35c49 ("net/i40e: support Linux VF to configure IRQ link li= st") > Cc: stable@dpdk.org >=20 > --- > v2: update commit message. >=20 > Signed-off-by: Steve Yang Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi