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 BD0C243B86 for ; Tue, 5 Mar 2024 10:51:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0F114026B; Tue, 5 Mar 2024 10:51:45 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2087.outbound.protection.outlook.com [40.107.223.87]) by mails.dpdk.org (Postfix) with ESMTP id E1D184014F for ; Tue, 5 Mar 2024 10:51:43 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hfKHW5rsGPkDzmjsRW2oHX4Viae9uy5N1zeAMcfKvNMn38Px3aSu8izudhbPK3LD3rkjK+ffCb+bih5HyO/tsNjG3A77Fb3aQGpusQXynJ4VOHbx+1+ghWnrZYuAo7cGP9o+a0DgrioeB1OXwizWl8xO4j3It+a41X2HS/PMmgpRUWZLVzBiCD3U2yicSthQZTn5jq2amZpVDWog+6z+C5vXq3nQGLYJ0Ndd+RbSsdW3b6FmF9qYBTMruB+qwseGXiu2MAZHDuY+JI5bsNBR5kDG5P5q9aAZZ55VTB6OVAJ9jK3tFuGVXGTgo0eTjAcFlQYG01gH60wDkS2VFnGSUw== 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=VJJcUtTpTWX1Ay4EW111xRhE8fPArsMa9axwhtaqZKE=; b=l7dCp9dkkOeXN5Q35bnXWoU9PoaV+OsBpxrzhWA62IP8+Owmhp4HC9sQgke5MhJfFMEmDmHw6+kfSJl62UWDt16h0u01pzhFS+TP1UQFYs+eqPzW0XYUg61AvQ2N/IQWpzbET+t0fOpHnTq4psGG/6hLKGbFBmCoB2+IRtbY5qCbdKVp8jJDm6MO5M7nXWrSWeRVipbopJzxQxkFYFX3+xMbgB2fn46lZukrl6jvrssWKVR/nS7ce+MvMBz3aFywARVvO6bVdLsf3cB2Cl+zNwWpxyOeuk6MiSbsY7u8pBNMp2l6lDkeTj4MbLHhFKAe9Mtv0WyXHGGmuHhRdKu3Pg== 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=VJJcUtTpTWX1Ay4EW111xRhE8fPArsMa9axwhtaqZKE=; b=Ha5KjJ1IGZLphCwdjDrEwHprIa4luP0fG6htU8cs9CdkW/OVjsniPl8v57f972XlP5mmCeFYkpwu2cvIG2ZWgwaGymyjimLeCd4WyLbpoQsy78MHLJGlk4ztuKnlgxGMs054Pe3/ttEk0reI7xxoiv+X2mgucie6gx0jjBh1vM582k1RVZ0AFmyCCN6irBdq1OyKVsjfz/C6xDxpyV6hIfREyUiTkNBQEqIUYPoZZuGLXr8Y2hKRDtu/PyIIn3WK87GY0Myr2QDbFsFBVStDW5SEr4WEn4Q00zsl0A6o6lUYcSDMxqJ1FNw6bfYS2tWx998AQnh7Sx2eI3XDUSeCGQ== Received: from CY8PR10CA0045.namprd10.prod.outlook.com (2603:10b6:930:4b::23) by MN6PR12MB8592.namprd12.prod.outlook.com (2603:10b6:208:478::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38; Tue, 5 Mar 2024 09:51:40 +0000 Received: from CY4PEPF0000FCBF.namprd03.prod.outlook.com (2603:10b6:930:4b:cafe::76) by CY8PR10CA0045.outlook.office365.com (2603:10b6:930:4b::23) 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:40 +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 CY4PEPF0000FCBF.mail.protection.outlook.com (10.167.242.101) 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:40 +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:27 -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:26 -0800 From: Xueming Li To: Chengwen Feng CC: Huisong Li , dpdk stable Subject: patch 'test: verify strdup return' has been queued to stable release 23.11.1 Date: Tue, 5 Mar 2024 17:46:20 +0800 Message-ID: <20240305094757.439387-40-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: CY4PEPF0000FCBF:EE_|MN6PR12MB8592:EE_ X-MS-Office365-Filtering-Correlation-Id: 220c892b-c3e3-4495-d03b-08dc3cf9db61 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JIEY/z4YSSGvyrVU4MiqGuFJOi0qjKdO3fAP0yOZFDcFonNyzCVwfTFdo3qTfY++6FYXxhYhDZhoaPX27qGf5T8XFN8etozxXbUuM/egIUBkyQuT+Pdj6fEAx+e89QRLzggNEttN6ylYMUSHZ19WOQc5yxeJ5mvpUSQRzw8oJlEmfYvh0omsuslQKIp4jzZ7cVKFPBmCaFUpk6KzvwEAYdbB/7SXvKZ2Hztf+pSyaG/EOcw1w6E9zJOX0tgAC1lwMCLqMwyrVpxAK2fHzX/hoOx8xQXP4zj9ksjgQb2N3cz9NXGsthjsiSkwnmOYYPoDqTiWsmrLyfe6d/6vcXl+3E5ZG+0CnToK7QtyybUolLSrJCiiK6qJpSaOR6a/++7+bPnDSL483tkl+ySCaPWAuYmJQRNvMcWR18D+16IBPVHbkKdvCuQuMhw2g4EIDalu7/KZioHrGhr4/9qLhRrLG7kFl+jsjAcyFqfvMr++sj0CAe4s9PRedPEflYttGxNhcHMF7LgvqeeARBhCJ7Rt0atcx5bEH1+8MlTWcDhf0X27rbP+VQgxUmemeBjXvAyVoHpOsPA2pGb7K5qEpaeWNf0h7bC4kVk8HZJ82qCt3EtBu0mssMW8zhk3Nw30eLs/QI6xn/fjBzjxJdbhhg0NfC9oCSv5r8IlK+4YoT5DQr+V5qPJY6Tp+OLnpDjriWmliRgIjYkqZati6AvxqJUxo/qRCgEo/IorqRrmYoBN0Cr68qgvMH+acifvc6lpmMED 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)(82310400014)(376005)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 09:51:40.3505 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 220c892b-c3e3-4495-d03b-08dc3cf9db61 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: CY4PEPF0000FCBF.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN6PR12MB8592 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=fbd04d26f306ad0d5357fdd1f596dc43dfcadebc Thanks. Xueming Li --- >From fbd04d26f306ad0d5357fdd1f596dc43dfcadebc Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Fri, 10 Nov 2023 10:01:12 +0000 Subject: [PATCH] test: verify strdup return Cc: Xueming Li [ upstream commit 68edcacf428994d3088afb6f5278958cc76665da ] Add verify strdup return value logic. Fixes: af75078fece3 ("first public release") Signed-off-by: Chengwen Feng Acked-by: Huisong Li --- app/test/process.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/test/process.h b/app/test/process.h index af7bc3e0de..c576c42349 100644 --- a/app/test/process.h +++ b/app/test/process.h @@ -59,8 +59,11 @@ process_dup(const char *const argv[], int numargs, const char *env_value) return -1; else if (pid == 0) { /* make a copy of the arguments to be passed to exec */ - for (i = 0; i < numargs; i++) + for (i = 0; i < numargs; i++) { argv_cpy[i] = strdup(argv[i]); + if (argv_cpy[i] == NULL) + rte_panic("Error dup args\n"); + } argv_cpy[i] = NULL; num = numargs; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-05 17:39:32.222730341 +0800 +++ 0039-test-verify-strdup-return.patch 2024-03-05 17:39:30.733566492 +0800 @@ -1 +1 @@ -From 68edcacf428994d3088afb6f5278958cc76665da Mon Sep 17 00:00:00 2001 +From fbd04d26f306ad0d5357fdd1f596dc43dfcadebc Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 68edcacf428994d3088afb6f5278958cc76665da ] @@ -9 +11,0 @@ -Cc: stable@dpdk.org