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 8555F43B86 for ; Tue, 5 Mar 2024 10:52:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E87142D7D; Tue, 5 Mar 2024 10:52:06 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2054.outbound.protection.outlook.com [40.107.93.54]) by mails.dpdk.org (Postfix) with ESMTP id 9FB1A42DED for ; Tue, 5 Mar 2024 10:52:04 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DaMiP8OnDthszXTJU9CmwMg3rE5lajBno7DYwq9QF4UaWxNSdwFiqZD85uRAq5KMgDQZGgjImQy2+qnbe93DLA01hXFmu5uYd5zb4UsngRgNuYBztR710TwTgFBtx+whCABxvFrwc0Ea+Pd/LHTShCEw2CiXLn15fBlDluIV/mWFtMmFYKYPGGnHgUGcRuHDKB9kmWYDSaVO/LksX/xGiM8/Zn6ZZf6ifPUQpgHyQDwWyoqaaSjKDUk/sreUMI27si9Pg7s/DLISdCZZT1q0UHnrkKg7sF++eyn6tL/f3ZZD3xXFjaftTiAQIfJMLAdtGXF2v2czpG0EkULsQ1/dQw== 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=FA5I5t8o6G39nqp5RMRX3CDCkNJojJO/RJox9h+N16U=; b=UGQ1TDDarOeA+reeNX4JFymdS+O6CAIBam4uHNaiy6T3Xgqn5hEruQhZKcd3ydCUQ9UYbDrssf5KnBQf1BGMmqnWBvLSpbaczMZOGHZILd5IXaRkJQ+JPGKkJraOZ5hD0qEl/6grY4ULXXZ3ZrqhNmsyjdBL8IrxmH2m47LvMJZPlbm5E42nRKYZM5+3jrvGguPis3tFOXjZ8usv9sJs2dF8wuSW4POudSRJXkdPHygodXdZipiAHZClL2JeEQSAkulPuRYlVh5axKpqyQI4QVpZ/FMdf3GsH0flS2IVsO7zduJCMJRjQOGzOA5Nm01Wt9DXpAuR2f7feeOOPnjzyw== 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=FA5I5t8o6G39nqp5RMRX3CDCkNJojJO/RJox9h+N16U=; b=FA8BLGxMXs4yIQv3GeT4hYQ/fTMOm4RvwaN7l82Fug0Ch4Qa8jaLy1ASjuA/o7H3FUYGKoEuyRk+wpoVVRWJE4Yg5JF68/rzOcSQoWa1//eCZ5voz51KU+xVQb53aDY97PkwLEtmvuOXgy6IsXZMiyVRpQYvZZiAjaee5H/dbU0yUZ4kZ+sSjMELLlW3QsLbWvq+9o+gVeqrQ3t7U16dEBgFLWfgiA3vmeoTtyeZjNsitHO1TZ22qg8AAX1CTEExucxOTWgz5Ksbyh6Jfcz7zTfEFPaVHcO319ceCINrxsQhS0sqY1rh7G8tTvcsUdftQ4rDyOLRD28u6OSX1SVC8A== Received: from CYXPR03CA0009.namprd03.prod.outlook.com (2603:10b6:930:d0::7) by MW4PR12MB5668.namprd12.prod.outlook.com (2603:10b6:303:16b::13) 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:52:02 +0000 Received: from CY4PEPF0000FCBE.namprd03.prod.outlook.com (2603:10b6:930:d0:cafe::59) by CYXPR03CA0009.outlook.office365.com (2603:10b6:930:d0::7) 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:52:02 +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 CY4PEPF0000FCBE.mail.protection.outlook.com (10.167.242.100) 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:52:01 +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:48 -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:46 -0800 From: Xueming Li To: Chengwen Feng CC: Huisong Li , dpdk stable Subject: patch 'examples/vhost: verify strdup return' has been queued to stable release 23.11.1 Date: Tue, 5 Mar 2024 17:46:22 +0800 Message-ID: <20240305094757.439387-42-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: CY4PEPF0000FCBE:EE_|MW4PR12MB5668:EE_ X-MS-Office365-Filtering-Correlation-Id: f0bf6a14-2c3e-4027-00e3-08dc3cf9e7be X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: loDLXx4XTxN0lW3wL1vN6ZEQBcjZ4e54zcsr3nbuokJeJ8VqS9VyrxANZn4aUS0zIDHJe+gx2QHjAjfxB/4Q5ifma8foIc9c182m4RiCwCBZSSIfopoYzi2EnQwe9axNL2uXUwf19oN4mRRgy5cg2G5BLbkx+OOj6PfcbKaDuc+VBhBMEebOnV8fN8bXNLteKAOIrf0MssOC/ynseuwk1oL29aRGE6DD2pzKLC++a2CwAz6n/RX61KOTqU5edAVhJiEsl8vFGKp0jRHxNXQog9CSUfqNprZQDMU7AvKyo6bDGc57k/Yp7Cy9rR4P+BKI5t8DVc++zaM771qOWyX8S/f+YQgyJQpvXwPADcdeXW0Vg10YNwCDWLZsLEUp3zkDDkE43kt3LtsQs3gjdrikcqI/d/ng3P9SFVruPQwi0Sbxt+cxpvbiMSu8CkZWm6YSeff7M3eTHQdty9/GkAamiRTkkFVF0faYAnygJV36cU223Zfd/XqFFkblUY4YnxP435tQBj0ghxwW8Jt7gYLZv+aCxr3WnUcvRsoNZRauPJvILZNq9X13cJsqCBuk71de5GpHkDLhoBG2P8Cb9/17mGprTVTyf/jMMd2WFYGPTr8I7BUemC2qjM6B18+wLd6tsFFYVVFqyuqxzml1ljchjeYqIdOy6aLqaz/r0QcwIkqOwtXWY4Iu0MFr75yy1fTqrL2BOGuSMZ7yvfnAfIyxYomwwCiHZ/GXBA8Kr1Hg7HDBHZXARU8WNO9/TJMLin6h 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)(82310400014)(376005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 09:52:01.0873 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0bf6a14-2c3e-4027-00e3-08dc3cf9e7be 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: CY4PEPF0000FCBE.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB5668 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=5331b413827f6a7fa43403fdccd13f574b34e849 Thanks. Xueming Li --- >From 5331b413827f6a7fa43403fdccd13f574b34e849 Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Fri, 10 Nov 2023 10:01:17 +0000 Subject: [PATCH] examples/vhost: verify strdup return Cc: Xueming Li [ upstream commit b119863bd6643558af3ac3b39a63b6524e7545eb ] Add verify strdup return value logic. Fixes: 53d3f4778c1d ("vhost: integrate dmadev in asynchronous data-path") Signed-off-by: Chengwen Feng Acked-by: Huisong Li --- examples/vhost/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index ce5c1efddf..3fc1b151d1 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -260,6 +260,9 @@ open_dma(const char *value) char *dma_arg[RTE_MAX_VHOST_DEVICE]; int args_nr; + if (input == NULL) + return -1; + while (isblank(*addrs)) addrs++; if (*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.271432143 +0800 +++ 0041-examples-vhost-verify-strdup-return.patch 2024-03-05 17:39:30.733566492 +0800 @@ -1 +1 @@ -From b119863bd6643558af3ac3b39a63b6524e7545eb Mon Sep 17 00:00:00 2001 +From 5331b413827f6a7fa43403fdccd13f574b34e849 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit b119863bd6643558af3ac3b39a63b6524e7545eb ] @@ -9 +11,0 @@ -Cc: stable@dpdk.org