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 51DB2A034F for ; Wed, 10 Nov 2021 07:56:35 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A8E441120; Wed, 10 Nov 2021 07:56:35 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2051.outbound.protection.outlook.com [40.107.236.51]) by mails.dpdk.org (Postfix) with ESMTP id 2E4044111E for ; Wed, 10 Nov 2021 07:56:34 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O67mdBt4teKImI+rJtkQYYF8BPYObWo1czyFZGZEWDxpLe+JmBTtisfENrsrERy3u12sVf42C/DD/3d8bY7YWGu5t7jWQls21N3TOMOV0Dzu5ZzSy9doO7hr2xlh/bZeT9P7lvyAeSMMsh8FWQe4pbDCnw5NSVw/9j7nSKiSjJojN4wh1J9/3P5MgXasq2t/XTgkA2jqazel0ackUB02rYZyyJ1H+tIbVKUOxDedk2xaJY+OvcOVsUd39W7MUkrfBTkI+MDbRLm6f77LXmbw/ugC5qbw7Qk35gaj8fGbxpNSsCGfWIh5zpBPRSbLd4Nw+mRFKG/x6exUNtBtsfmrNw== 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=ridNqLC00PsMFa6JO1jviz0BIAtbxgZc1idTvUTvhlI=; b=WH9Z6pw5rGsgPAdm0nojsrIsbVFt4hW1IpYlm0FqXHGDU0lUHXcNID87BZpEbWeqdv45pzxEwnBMlJs1kfSsHC7+ipXn9hMcZS1rph5nzYglSW64ESN4nPux3UibB1QflBBQ7RLDgCxL+JWv06DGd8WE2acJccat1/EtX9zvw7xah+bn8reeHxnAP6DTjPZB6NVkWBvvSZQrQDMLuCsPE310lsfit6LlD8cuTAAAzAS3NsXnIfKs0noZJ81OrMCDJpVh7j+Z/wdUz5SCsjmoYQy1YfYezxc2cuSim1GWPuoIDKiYrHKPP3qpg9CgiwvoyPClQ1wnTkvMsXu9Fwa1YQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ridNqLC00PsMFa6JO1jviz0BIAtbxgZc1idTvUTvhlI=; b=r58J1sn92dDSKWqqAhPzTXMZc6gUvhvLbifOpjDfBvfpOOiQYcUdAO+l1XOs8EOysbrRMiguXrm7alqEHGfom87vWig7KnP+/gFKDB/hcBYfUtSRSc/Xd308tanNuMw3xmzqc9MxKV/bB5hQLD8G1tsxjx94zz4z3c7Bp4RfkVtw33DIXxZYeqhrL5qaFhhVHXB7D+lUXRUR5Ajg9mDnP6WdZI9RiN224+fBfAdTDVMJ1c5OEiKddi0rbW9YiGZAcTgFhZTTQSSHf0UEKp3TE+l5Ca85pv01w75C22EOlASp+8+9VQc66m12EGtsuUOm4QrWrvLzumKYVQQh60mgNQ== Received: from DM6PR08CA0003.namprd08.prod.outlook.com (2603:10b6:5:80::16) by MW3PR12MB4508.namprd12.prod.outlook.com (2603:10b6:303:5b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Wed, 10 Nov 2021 06:56:32 +0000 Received: from DM6NAM11FT032.eop-nam11.prod.protection.outlook.com (2603:10b6:5:80:cafe::67) by DM6PR08CA0003.outlook.office365.com (2603:10b6:5:80::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Wed, 10 Nov 2021 06:56:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT032.mail.protection.outlook.com (10.13.173.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:56:32 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov 2021 06:56:30 +0000 From: Xueming Li To: Ferruh Yigit CC: Luca Boccassi , Qi Zhang , dpdk stable Date: Wed, 10 Nov 2021 14:31:43 +0800 Message-ID: <20211110063216.2744012-220-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 124f928a-8695-4e09-cc2e-08d9a4173a70 X-MS-TrafficTypeDiagnostic: MW3PR12MB4508: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vm6M2XvTxvqkPtiBngw/Yx0ej+wlVDiJMGJiUsg2plGtYl87HxDq7KkXmbswoPycd7QwRPnGz/5ojkKVunL0FJmCRtTNijB9Fnl/X65wr5pe4jbCzYwhNsBwl5ZlEDxVJhqpqEzXccPPJxm/CJTZiI33t3EgVQqbXyFG4PDb85E9QiR8y1dQiwhszognlEGzKJhUjnb5r+H4GGww7zPme9s2vgREB6Td0vAy5a6nXxvP3UqFHuD+YuN/m6okNJi+InmlkT2SzI2f6FrsZYMO8kjL44hjeP5V4gYtxC5hLGaduCXQ2J47fv6Szn5bHRZormhlVmwFlgKqeC5w9Kg102HPtEjBhk9ilCQ/ZvAraksEhIR+JqHVOdrNp+Qol1TLV2rcMeMCzSjMDTwXHq/rzp0IFuEpYzX0ZoC7AbjM4bnrwqPIpn9D34Ci0ZE6ptx+47k5lX8NGv0/5sYn9gvjmNXTkHVAqFWxvRca4B83kXHwjDT5fS2PJsmujMEYQ4d/a7jtnoDgaVTfuT/PwrhL8rzfmdH+xDucbNj8HnSoMVPSFuBbmwRQRgEc5D0FoMQQSqEsmdx+l8u4k1iWN9bsGAh9E89fBbqd/OutRnVYGRYuWyBFho1VvZ8+KqSJAPkjWGE3+ddNWXQDMWffmG79EoPVc0yFfKioDrprxvm4F501DInvDIQp7DdA0UFydwhxP3KQz6lrsLOLdaFj0MG1DfkvpPaR3GoLw1P2rKAba8KSEZMKJABTXbV/EGzZ8ZH8Q4AURhYMFDphfCNnNo4J2ULTEZPrHT5sdgiyrhMEdCJ6LtW+RQGkMNuUJhOM0xpqlQBb+WlZ1H4cAh7OtvEglA== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(70586007)(36756003)(36860700001)(70206006)(966005)(86362001)(508600001)(6666004)(6286002)(55016002)(7636003)(82310400003)(1076003)(356005)(6916009)(53546011)(7696005)(4001150100001)(186003)(16526019)(26005)(54906003)(47076005)(316002)(2616005)(8936002)(8676002)(5660300002)(4326008)(2906002)(336012)(426003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:56:32.0260 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 124f928a-8695-4e09-cc2e-08d9a4173a70 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT032.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4508 Subject: [dpdk-stable] patch 'net/i40e: fix 32-bit build' has been queued to stable release 20.11.4 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/12/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/c5135ae62291badcb81a06345881fb6fc3e37404 Thanks. Xueming Li --- >From c5135ae62291badcb81a06345881fb6fc3e37404 Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Fri, 29 Oct 2021 11:37:01 +0100 Subject: [PATCH] net/i40e: fix 32-bit build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit d01201829b88fe823e0b99cd13a65e1711cd8973 ] Got error with: gcc 11.2.1 "cc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)" Build error: In function ‘i40e_flow_parse_fdir_pattern’, inlined from ‘i40e_flow_parse_fdir_filter’ at ../drivers/net/i40e/i40e_flow.c:3274:8: ../drivers/net/i40e/i40e_flow.c:3052:69: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 3052 | filter->input.flow_ext.flexbytes[j] = | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 3053 | raw_spec->pattern[i]; | ~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/i40e/i40e_flow.c:25: ../drivers/net/i40e/i40e_flow.c: In function ‘i40e_flow_parse_fdir_filter’: ../drivers/net/i40e/i40e_ethdev.h:638:17: note: at offset 16 into destination object ‘flexbytes’ of size 16 638 | uint8_t flexbytes[RTE_ETH_FDIR_MAX_FLEXLEN]; | ^~~~~~~~~ Fixing by adding range checks. Fixes: 6ced3dd72f5f ("net/i40e: support flexible payload parsing for FDIR") Signed-off-by: Ferruh Yigit Acked-by: Qi Zhang --- drivers/net/i40e/i40e_flow.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index 70c5c72326..0086a5f443 100644 --- a/drivers/net/i40e/i40e_flow.c +++ b/drivers/net/i40e/i40e_flow.c @@ -3049,6 +3049,9 @@ i40e_flow_parse_fdir_pattern(struct rte_eth_dev *dev, for (i = 0; i < raw_spec->length; i++) { j = i + next_dst_off; + if (j >= RTE_ETH_FDIR_MAX_FLEXLEN || + j >= I40E_FDIR_MAX_FLEX_LEN) + break; filter->input.flow_ext.flexbytes[j] = raw_spec->pattern[i]; filter->input.flow_ext.flex_mask[j] = -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:11.567401141 +0800 +++ 0219-net-i40e-fix-32-bit-build.patch 2021-11-10 14:17:02.034078088 +0800 @@ -1 +1 @@ -From d01201829b88fe823e0b99cd13a65e1711cd8973 Mon Sep 17 00:00:00 2001 +From c5135ae62291badcb81a06345881fb6fc3e37404 Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit d01201829b88fe823e0b99cd13a65e1711cd8973 ] @@ -33 +35,0 @@ -Cc: stable@dpdk.org @@ -42 +44 @@ -index 9acaa18751..c9676caab5 100644 +index 70c5c72326..0086a5f443 100644