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 084DE43B86 for ; Tue, 5 Mar 2024 10:51:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01E864026B; Tue, 5 Mar 2024 10:51:39 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2074.outbound.protection.outlook.com [40.107.237.74]) by mails.dpdk.org (Postfix) with ESMTP id AD9684014F for ; Tue, 5 Mar 2024 10:51:37 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LHIUXXMaUDxdH4dq7fLOfonuSB9ndDh0ZgsDop9wVRDRZIRlS/O2pSCoAXVKKlsVnpMl6ZxX0U2nM4HuzNUOuHO5sdM0X6KqT93dmMhUcfDEKZ3FqoMlO97KOHcrh1TDxDyb6bHjyl+ISAXXP/5LK2GZs63oDGQ+FHysUbHIlywclBpsOAZGBxAjkNdvBgTjqEqCCJQnmwZ2MMPLfjVibRiplon/jFI2ccPmfCVXXVQT6gjqoKzG4dZBUysxKeJqrKVPF02uDt5tAqAvvn5pEbsACy0wb5MXMICXABDOrZnrjhV5rg2P9soAKtq6iT225jlRTpgln7rWO+NNZ4UCEw== 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=bp+nyWa39Ug5DZvgzI4hN0XLoOm4b7jN57Vn60dVbl8=; b=mRqrPzIZSkAZlsfILYKDPT8SHKUbBJOAhJG549QDjA4XDaqkCR/TDSoAOK8pxGvNvvjpZX7yFj8O4Bm9he0KywmhCRJ90STfS//I6ltQFJRvh+7s2kcn8nX8UCoLgvCLQ2MryJoWI+BKIDq0b1BTD+U2vMY56hWTfGpc57zD00xYMa0pztIva3iNeux4WPmRK5oA8hbrOZPq7/X+RRXzfWryGPsZzYx46lvU4dZd4OpBhkNGcAWq+vGMOxGnkqp9bX4/eiEUlYhNYQ6qOXbnVMPDPeam1pPBmYfibSlB4JHTIhRW0t+CjC+qZR8ffTxppXIMkH7HFnt0UgjCmARlBw== 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=bp+nyWa39Ug5DZvgzI4hN0XLoOm4b7jN57Vn60dVbl8=; b=OV6XQUzARU4MuCicK0aGepS0tFqLaBeGybIqSr5L5f2bQAP5JJKxH0XfUdg+Qeq1WwKPGG4WYsb+NSx4sBf1/b3CTwPUsFq05An9uRXMDPZuFL8apJklpItKDjbKi6mjKi4vxADgPwNw4jg6Vrr7f5xyomSujABp0mv4vFi8i1UgbH+Q9N5geBstu79+aDHdLp4GEGj8ps8VqYrpf7MkaZMKwzvxo62P3i30Lr3fwWP0pWNvonA5uxcJlmJbWD7tVu/nd5FZMP+6wSEdnit4LCSdmWbMHRFIBP3u2g7ghHAHQwyPqKl4IDPM9RzF9uV5ZWbcfQMXMlql+u0+u14stA== Received: from DM6PR03CA0020.namprd03.prod.outlook.com (2603:10b6:5:40::33) by DS0PR12MB7509.namprd12.prod.outlook.com (2603:10b6:8:137::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39; Tue, 5 Mar 2024 09:51:35 +0000 Received: from CY4PEPF0000FCC0.namprd03.prod.outlook.com (2603:10b6:5:40:cafe::7a) by DM6PR03CA0020.outlook.office365.com (2603:10b6:5:40::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39 via Frontend Transport; Tue, 5 Mar 2024 09:51:35 +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 CY4PEPF0000FCC0.mail.protection.outlook.com (10.167.242.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.11 via Frontend Transport; Tue, 5 Mar 2024 09:51:35 +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.986.41; Tue, 5 Mar 2024 01:51:24 -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.1258.12; Tue, 5 Mar 2024 01:51:22 -0800 From: Xueming Li To: Chengwen Feng CC: Huisong Li , dpdk stable Subject: patch 'app/dma-perf: verify strdup return' has been queued to stable release 23.11.1 Date: Tue, 5 Mar 2024 17:46:18 +0800 Message-ID: <20240305094757.439387-38-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240305094757.439387-1-xuemingl@nvidia.com> References: <20240305094757.439387-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: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000FCC0:EE_|DS0PR12MB7509:EE_ X-MS-Office365-Filtering-Correlation-Id: cbd354a3-6770-4cfe-84bc-08dc3cf9d834 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A+vh3UOJvPfo0dsgkD+8tSQOa3amRL4sjZ7Vs1vV+7Iuqea6AwCjbnrzFG5Nhjg7Bw9oqakyjH+L/mxYAYyoydTbtjM13xEKwd0ORXhbXO74CprPXMhVU6LidZWWM9O9S9YYJFwUT6xY6u5lEAqMunUD9oOO4shKf77hyConms+S0yCki0odHoSjHRYhBR7T5oNFEEoHuzaAyUkNrmH5zUcj6Id5XjYEC+X72faXXeF4KPnh9zXW7U2XpnPRzZUybwBwGZvtCUWBq29KcsZnRZ18mMsjrb4nqKHSOZWole3E4YbD3FFw8bM1diYTAV6AAaye9U+lquemd2wVqDQZuhVmDnys/1skQYwGKMsxU+kbt4KIEoc3u936z8bnLBWVMCXIMII4HfbKpTxrZWLAagxR3R5wlritd/6aJBcwPzsTpAO5iG5MO9QC6htsWPN4JEktX/0R58WAEw4hMyY8qBi17gOuGkeroHAnTLQxVlL8xMnlE4mAcfBh6OMsXl/fiqAR8KDq8FpkBHYFam6xh3lSpTvxk8/jS+UAyCJ8MDtJ7hxoBBHx3QQKtgdeugekyBkXk1GB0rScN2h7gNMOsiQWqaISxGFj+MUYcDkSv23N9QoAART/pkezkHV7i7ZL/wGFZKt+xqdMFkO45xIbQ42sDq0BGOrgeB4fkicSwDd8xF+/nSInSXPL9APCxDTdjPySNZt3W87BCXFJ0pw5V6Jju6KtXEjH9edMDAJpUlxwPgaQi6/zKzYhaCgC87Rg 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:(13230031)(36860700004)(376005)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 09:51:35.0205 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cbd354a3-6770-4cfe-84bc-08dc3cf9d834 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: CY4PEPF0000FCC0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7509 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.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/31/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=8d5327fcfde672c44d6eabfbc4450d47062a31b9 Thanks. Xueming Li --- >From 8d5327fcfde672c44d6eabfbc4450d47062a31b9 Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Fri, 10 Nov 2023 10:01:14 +0000 Subject: [PATCH] app/dma-perf: verify strdup return Cc: Xueming Li [ upstream commit 8d9b64343344a56301dfc1975e4756d526f05824 ] Add verify strdup return value logic. Fixes: 623dc9364dc6 ("app/dma-perf: introduce DMA performance test") Signed-off-by: Chengwen Feng Acked-by: Huisong Li --- app/test-dma-perf/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test-dma-perf/main.c b/app/test-dma-perf/main.c index 5f8bab8f45..544784df50 100644 --- a/app/test-dma-perf/main.c +++ b/app/test-dma-perf/main.c @@ -206,6 +206,8 @@ parse_lcore_dma(struct test_configure *test_case, const char *value) return -1; input = strndup(value, strlen(value) + 1); + if (input == NULL) + return -1; addrs = input; while (*addrs == '\0') -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-05 17:39:32.166195439 +0800 +++ 0037-app-dma-perf-verify-strdup-return.patch 2024-03-05 17:39:30.723566491 +0800 @@ -1 +1 @@ -From 8d9b64343344a56301dfc1975e4756d526f05824 Mon Sep 17 00:00:00 2001 +From 8d5327fcfde672c44d6eabfbc4450d47062a31b9 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 8d9b64343344a56301dfc1975e4756d526f05824 ] @@ -9 +11,0 @@ -Cc: stable@dpdk.org