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 AB5A745E41 for ; Sat, 7 Dec 2024 09:02:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9EF0140281; Sat, 7 Dec 2024 09:02:09 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2040.outbound.protection.outlook.com [40.107.212.40]) by mails.dpdk.org (Postfix) with ESMTP id 1318440281 for ; Sat, 7 Dec 2024 09:02:08 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KUtDgO+VLF1rOJorE9DzlQaNXmwhjiYZM48zYD2JiNboZ//fZc+u8tBNbUTC13XdTk1KCJr0RroUFuGfx6fkJnpWRcFjAu+bj+iWNLMkDFNzXQKumnj/7rO1QTtw2Q3F+wgLdGO2XKHjrfXBJWtXj+BYCa8aKmmeZYEd6cJEJw726wqytPf1kOFYda1nq4ielhWzKoQ4Zk08bRNWsXgmw3vRSHmMqK2nefsV2tbwaHRofqGi1g/gWNT1AYh69g5uhDGbEfZEvki205+fK0QojXwrDikjR9dBV7vVRcMmpoz1UKMCEQjUpS28kki0LQnb2i25cr8o7sH5i2K4JQZayQ== 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=+gWcfhuRGttG25GmnJjqRAvLhgQvVZrN12M5UKAAjuA=; b=hOMpBDnPwrOe/ruAYyzRXQhqqcg4q0ldExVyI0Wq5lgZTG/psNKIcUVZMC/gSEIGbMRYuyaCSe1+zFaoCJaGFRQRg+vw0xusyX8dJAUCPouMCAmNQ7vX+7dROCHoxmM6WCPpw/+BtLY/YOQiSBPtA32qa6IXd9M0+5ss4CTZmW/GcKDEYWhAta8QkAvnLasAzjxbWUE+rsSEa6M2fkmrsvEMRRU93hpo7JTf+hQaOyQq43ntFMdF1K2/ckp0QBG80MhemEwbBaAEnGxUhPuGi4pVXROrz3QPeq4SnJchbCZl9d9QMi4afhIM8ztsNDsQ0hTtNH+WYUlvB/Hdz5tnyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=+gWcfhuRGttG25GmnJjqRAvLhgQvVZrN12M5UKAAjuA=; b=EXJ1Di2EDbUmY/eBQGuZUG/LQj6zJzvwEtfFelXP3CTh8hxXN0Yy2lR27VkKXqVoM2gCbcnqLa5S7fYEWHcbLi3F1fYa3ZJ+PANgN4eX6IzeUGvicPhidnbK6gy3Q9IYveMO4lyT91mEHMl1eB0FRc2T1RwWzjnOKM0nQL7g+kyNCv1Ujf2+IrCxmVq5LtPIcJ91Q2Q/X71kfQajxPvWTMqBm/4yytRT54xNJcV595RYxYsyWCGK3g/GKJe/08MepIsokCMxaitLOliFnjEQzPabge+meqEViJSpUpIV7U5XMdHuO/yTt8PgTeIw8Vp5CIZa8WKdPFTFhQasxNMLzg== Received: from DM6PR17CA0036.namprd17.prod.outlook.com (2603:10b6:5:1b3::49) by CY5PR12MB6345.namprd12.prod.outlook.com (2603:10b6:930:22::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.19; Sat, 7 Dec 2024 08:02:00 +0000 Received: from CY4PEPF0000E9D5.namprd05.prod.outlook.com (2603:10b6:5:1b3:cafe::f1) by DM6PR17CA0036.outlook.office365.com (2603:10b6:5:1b3::49) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8207.18 via Frontend Transport; Sat, 7 Dec 2024 08:01:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CY4PEPF0000E9D5.mail.protection.outlook.com (10.167.241.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.7 via Frontend Transport; Sat, 7 Dec 2024 08:01:58 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 7 Dec 2024 00:01:45 -0800 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sat, 7 Dec 2024 00:01:43 -0800 From: Xueming Li To: Chengwen Feng CC: Xueming Li , Ferruh Yigit , Stephen Hemminger , dpdk stable Subject: patch 'net/mvneta: fix possible out-of-bounds write' has been queued to stable release 23.11.3 Date: Sat, 7 Dec 2024 15:59:24 +0800 Message-ID: <20241207080055.488538-7-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241207080055.488538-1-xuemingl@nvidia.com> References: <20241111062847.216344-122-xuemingl@nvidia.com> <20241207080055.488538-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D5:EE_|CY5PR12MB6345:EE_ X-MS-Office365-Filtering-Correlation-Id: 4d43c1c6-3a64-4857-3fe3-08dd16956cac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|376014|36860700013|7053199007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?hQLSY9FQ++nQNkTQ6wxnjflgETLD96ZxPW7nR9Rxe1ZbKNeSr/S11wP5/CMb?= =?us-ascii?Q?eGsgwr5sDAkKfFPflgtjfIJdtQAtbB1crDY8Z1b5+lCIE13pdyvJU7aKYz5c?= =?us-ascii?Q?AEs+VdX2XsNj7TlQLEHbztRbvxD8bGexc+qN5zSr8J/nEL0Qrqa4xOhWnrT+?= =?us-ascii?Q?nhPeTGorTt/4e7jfWS1wyoAKJUjxt3M7YXIHKrn010lUeV9ifD4sRQAqB9Gw?= =?us-ascii?Q?wDX6l8t/54JC2bpNBhzJylZMpu7jm3dDWgwFF3HX0Ui1rouLKAilrzK0+Dho?= =?us-ascii?Q?rqE48hw1Bv481hi/x/MQHLRNb9uujj6qiB67MorgRi6He9zrq97Dq9jiq8C2?= =?us-ascii?Q?mrLZ+NZYYDhO4oc4CIsRRqCV5Xueer2Zp4q+uR06/3+wszw5UhqpwSOn5rUs?= =?us-ascii?Q?mpnrgadIgXwYHGFS1uFbchnlrlb07yfP/gR6wCGyywXbXZU74pfC16JtHAQw?= =?us-ascii?Q?TD1GTXIzeqEef/sVVq7bV2Q7n5UYc+MHMHDkHa2GMBImuwjA/PkXv6b4i4z/?= =?us-ascii?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PnTOd?= =?us-ascii?Q?pu/9uNMUDQfSAtXmgieL31WL/zY1/VT8?= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(82310400026)(1800799024)(376014)(36860700013)(7053199007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2024 08:01:58.4550 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4d43c1c6-3a64-4857-3fe3-08dd16956cac 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.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6345 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.3 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/10/24. 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://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=e26531c22509e629f3287cb7293e5c00d606d9fb Thanks. Xueming Li --- >From e26531c22509e629f3287cb7293e5c00d606d9fb Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Thu, 10 Oct 2024 00:53:26 +0000 Subject: [PATCH] net/mvneta: fix possible out-of-bounds write Cc: Xueming Li [ upstream commit c705c67d304b9450824a169b652520c2358c6aee ] The mvneta_ifnames_get() function will save 'iface' value to ifnames, it will out-of-bounds write if passed many iface pairs (e.g. 'iface=xxx,iface=xxx,...'). Fixes: 4ccc8d770d3b ("net/mvneta: add PMD skeleton") Signed-off-by: Chengwen Feng Acked-by: Ferruh Yigit Acked-by: Stephen Hemminger --- drivers/net/mvneta/mvneta_ethdev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/mvneta/mvneta_ethdev.c b/drivers/net/mvneta/mvneta_ethdev.c index 212c300c14..7700a63071 100644 --- a/drivers/net/mvneta/mvneta_ethdev.c +++ b/drivers/net/mvneta/mvneta_ethdev.c @@ -91,6 +91,12 @@ mvneta_ifnames_get(const char *key __rte_unused, const char *value, { struct mvneta_ifnames *ifnames = extra_args; + if (ifnames->idx >= NETA_NUM_ETH_PPIO) { + MVNETA_LOG(ERR, "Too many ifnames specified (max %u)", + NETA_NUM_ETH_PPIO); + return -EINVAL; + } + ifnames->names[ifnames->idx++] = value; return 0; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-12-06 23:26:44.346855123 +0800 +++ 0006-net-mvneta-fix-possible-out-of-bounds-write.patch 2024-12-06 23:26:43.843044829 +0800 @@ -1 +1 @@ -From c705c67d304b9450824a169b652520c2358c6aee Mon Sep 17 00:00:00 2001 +From e26531c22509e629f3287cb7293e5c00d606d9fb Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit c705c67d304b9450824a169b652520c2358c6aee ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index 3841c1ebe9..f99f9e6289 100644 +index 212c300c14..7700a63071 100644