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 33498470AE for ; Sun, 21 Dec 2025 16:04:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2AD4140649; Sun, 21 Dec 2025 16:04:12 +0100 (CET) Received: from CH5PR02CU005.outbound.protection.outlook.com (mail-northcentralusazon11012025.outbound.protection.outlook.com [40.107.200.25]) by mails.dpdk.org (Postfix) with ESMTP id 5C0EA40648 for ; Sun, 21 Dec 2025 16:04:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=X2D6J98pnN1QZww9AYEfatbNP6bk22rAMvUnTnzVSZKaxuXkiSB6peTujjHq6yPAdRS8MwhX01r9m4bsMccdGJq3Z04Kh3BsRA0Bek/4KdJYGxs83VPUP6Ll2Mm6pn7ewjPSVBTgZrvNIiDuopIg48PQ4wSxun/7FOGmqDJgwPBhAVo8gygS1cXh9g765xVkInTuPE1YfeOxFPeIevyz/b9Eugr2yjnFOEdmP58D71vFPK2IyhGHPalTPKp+LWWeTXhp/p7/cb2jwxvMZu/jn7W0YIENOWyG4GRdRHMoFxESuWPch1Spu8mhKiVoeDvnkDaClmu4iHknLYKWCpskOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=9FyA0Bgjgkwx138yfEPXkwixQmL36GBnSvLtq4CodTM=; b=UDTycgAER1p0fjwX2w0820MGF52vqCXT6FB/XPWBruA0CIDLag5lthOnZCoY+t10XZ7oTnS/HW80YU6daGQ/Nts04+Lv0Fyi37aGNpcoRQ8hcuZtwwz3uDLiAatJlCWeYzU7JFiTeuXRtqTg3+jE4hBLv55UjJx+L81l8lL8pe3Xix91TksBsWdNhU9t9EllPvAJCd+FsCdRFFJWDbG+23anG51Zxxv/VqInA9A6bSIqZQ52It4ojEzEVdak9LjYcCEzrsaCWFUWyB6egsxov7dYSK6xHsMdK/zOgEi/+3fKji4DukjlXKBmi4tVpusyTQkt/Rnim8xCsUy3cIqgGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=huawei.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) 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=9FyA0Bgjgkwx138yfEPXkwixQmL36GBnSvLtq4CodTM=; b=jMtm08b18w8DIcXaZHph8OXuzOuO8jxibFw03QcT5X00whahKnAdfn8B0apE4Af5r5G9GOTf0Fbrwev52ViammWx7w7iuopxYlUaG+3qzHhe3hGD+qRjq3S3WDlE4DpVdJ82hHmWuoopYAhEc2+2XidZq6SSb6KP//wu11zYK4KXi96ZxCYkWIG84QPGfuA45xSF/GIDYe3Zaz/NqKXXz88Ypa0983V8nEp7FegA+vWCtv9U7u4t1zgXWNNuGChjgcGrI6eVzkdp4I7uZ26y3fnepdJbaTJsg6NXQ08wYt1OKBo+Zc/7YVwx27rLhxOpnqEdrS6FNHS+xmrpXf2chA== Received: from BY5PR17CA0047.namprd17.prod.outlook.com (2603:10b6:a03:167::24) by DS7PR12MB5909.namprd12.prod.outlook.com (2603:10b6:8:7a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9434.10; Sun, 21 Dec 2025 15:04:06 +0000 Received: from SJ5PEPF00000205.namprd05.prod.outlook.com (2603:10b6:a03:167:cafe::c8) by BY5PR17CA0047.outlook.office365.com (2603:10b6:a03:167::24) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9434.9 via Frontend Transport; Sun, 21 Dec 2025 15:04:00 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by SJ5PEPF00000205.mail.protection.outlook.com (10.167.244.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9456.9 via Frontend Transport; Sun, 21 Dec 2025 15:04:05 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Sun, 21 Dec 2025 07:03:47 -0800 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Sun, 21 Dec 2025 07:03:46 -0800 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Sun, 21 Dec 2025 07:03:45 -0800 From: Shani Peretz To: Chengwen Feng CC: Dengdui Huang , dpdk stable Subject: patch 'net/hns3: fix overwrite mbuf in vector path' has been queued to stable release 23.11.6 Date: Sun, 21 Dec 2025 16:57:03 +0200 Message-ID: <20251221145746.763179-75-shperetz@nvidia.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251221145746.763179-1-shperetz@nvidia.com> References: <20251221145746.763179-1-shperetz@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF00000205:EE_|DS7PR12MB5909:EE_ X-MS-Office365-Filtering-Correlation-Id: 942c1b78-5481-416c-82fb-08de40a22f2b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|1800799024|36860700013|13003099007|7053199007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?P1XKPrz88o6DTds8dnx4XWPD7FPfojKGqVgKItusLuPECqkiJCPIKMwkzDW+?= =?us-ascii?Q?vW0TQnr1doDZ9/7+4ied3nJTzZ3pZiLn34j1niIO3YTPISV6i0c3W5NJANr1?= =?us-ascii?Q?Ewj3mVwrEQx9OK+Qg/BSuK9PaV3Le/u9Nv+DOh8J/nerNcH6RBhPnuZQUEiF?= =?us-ascii?Q?Nu/wcJ8tmwr0wgkYtNAwuN7inRjhC4M3TRhvI23kPkcImmieLRjx4StJub1a?= =?us-ascii?Q?1CAOl1GM1Mi/d05yy07NEVcvPPdwiagUmTWWCJEHGQfrJYZa5oj3HWCja/Nm?= =?us-ascii?Q?56/K2jGDegzaxbbNpWHkPfGXvjpqll9OxmwEMhpJGvofBuMQUsE9aBhrj7IF?= =?us-ascii?Q?jI9gBspdN/Rz5H7GbXbxDbiMgrygcHrdRlQSM8h5B4OxrbUiOwKJ8y2P48UU?= =?us-ascii?Q?pyy+iCI+zT5L8IArNECw8sIDlmnXJylEXy+qDVX3CVgSjP9xMoz0+1t2G9XR?= =?us-ascii?Q?YDzKIIsQmTP29CS4RCS5VFm/h2UqFt1LRr3JoMVLSfWEViyrDeeCY+r+K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AeVwF9Ao/aEUFvPJlX4ErQEE?= =?us-ascii?Q?XVdwPMLnRAy/iwuFmYVvQCNTxVlQE97/JdTk3zNSZS0oi03RRiqxVgk7hsIZ?= =?us-ascii?Q?WJhpKv27wxCIVllGNhVZAyhe4x0Gg9p/p8W5BMxBZaN3M0ctgmWYL/gwxRTH?= =?us-ascii?Q?zIXeyB/Pnw4oLql8d4xgV41SpdEjksqC6hi3dfmK?= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230040)(82310400026)(376014)(1800799024)(36860700013)(13003099007)(7053199007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2025 15:04:05.2209 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 942c1b78-5481-416c-82fb-08de40a22f2b X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF00000205.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5909 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 Hi, FYI, your patch has been queued to stable release 23.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/26/25. 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/shanipr/dpdk-stable This queued commit can be viewed at: https://github.com/shanipr/dpdk-stable/commit/cf2b0f1550bb5e12eb23a7dc903c2b4673fed535 Thanks. Shani --- >From cf2b0f1550bb5e12eb23a7dc903c2b4673fed535 Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Fri, 22 Aug 2025 14:04:29 +0800 Subject: [PATCH] net/hns3: fix overwrite mbuf in vector path [ upstream commit 06b296a2264fcd1fe2d167f2d90a58607f5e81f5 ] The vector path processes multiple descriptors at a time and modifies the corresponding mbufs accordingly. When the mbufs cannot be applied for, the previous patch [1] only clears the first descriptor's valid bit, which is not enough. In this patch, the mbufs points to the fake_mbuf to prevent overwrite. [1] commit 01843ab2f2fc ("net/hns3: fix crash for NEON and SVE") Fixes: a3d4f4d291d7 ("net/hns3: support NEON Rx") Fixes: 01843ab2f2fc ("net/hns3: fix crash for NEON and SVE") Signed-off-by: Chengwen Feng Signed-off-by: Dengdui Huang --- drivers/net/hns3/hns3_rxtx_vec.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/hns3/hns3_rxtx_vec.h b/drivers/net/hns3/hns3_rxtx_vec.h index 9018e79c2f..6afa2fb814 100644 --- a/drivers/net/hns3/hns3_rxtx_vec.h +++ b/drivers/net/hns3/hns3_rxtx_vec.h @@ -109,8 +109,12 @@ hns3_rxq_rearm_mbuf(struct hns3_rx_queue *rxq) /* * Clear VLD bit for the first descriptor rearmed in case * of going to receive packets later. + * And also point mbufs to fake_mbuf to prevent modification + * of the mbuf field during vector packet receiving. */ rxdp[0].rx.bd_base_info = 0; + for (i = 0; i < HNS3_VECTOR_RX_OFFSET_TABLE_LEN; i++) + rxep[i].mbuf = &rxq->fake_mbuf; rte_eth_devices[rxq->port_id].data->rx_mbuf_alloc_failed++; return; } -- 2.43.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-12-21 16:54:20.937853460 +0200 +++ 0075-net-hns3-fix-overwrite-mbuf-in-vector-path.patch 2025-12-21 16:54:17.313081000 +0200 @@ -1 +1 @@ -From 06b296a2264fcd1fe2d167f2d90a58607f5e81f5 Mon Sep 17 00:00:00 2001 +From cf2b0f1550bb5e12eb23a7dc903c2b4673fed535 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 06b296a2264fcd1fe2d167f2d90a58607f5e81f5 ] + @@ -16 +17,0 @@ -Cc: stable@dpdk.org