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 04BA645CE3 for ; Mon, 11 Nov 2024 07:32:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EDD2940685; Mon, 11 Nov 2024 07:32:13 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2055.outbound.protection.outlook.com [40.107.93.55]) by mails.dpdk.org (Postfix) with ESMTP id B4FCA40685 for ; Mon, 11 Nov 2024 07:32:11 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AoGhDVyLbN1TUx7vctdbYGUQijzXvlwuHYc9TW0avjm2c389NqgLeKMwIIKhrQVPLgojGmyMXPS7qTwbEyCEvh9w7vwWSmunKkMbR8iXRM6RpyU3xBEfpVn4w6bm8Dix9tXOLdfeVQV6VH5S/1j9yb83zNETxk6yoy2W78OviX0E6daBeEIKwR8TOzH2xbOXszQvawMqTy7PUD++e6SCSqLv/aU5TAnNOUPdS8H873JieNUkUIVYhVgWcowndZerWOqwRor7+6cmXe6CLYgA6VpHmObGprHvSkwzsPJxJddDhhLmreoNrDnQuaTlBM6p4Ijs5UYCeVhqL70A1hpzUw== 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=Xm3P4G0+rkWobK+sNPzm07Mo+3TTbxBwD3LAP5xc+1A=; b=dQIpXzPl5JJ9mR2ySECmDdxKFCQ624VKq1H0Z5weqOn79BVeB5wET6J2cnELoG9inFZtRTGw2BDoTtvJtfkwhtrrGsTDxftjtRVcaes/k1pcERgiZccsxTioyqdrrJUwFsqyvmtVFrLTSnfXwxxn7dDjPYgqKGHlxtWMw8PXcCZci/4E1Q+donRctOWViUIeuvKYTEQwhHDHioX9tfYTfpI02WIbqS5mM0rOJJ2mIQK0NIOtoEe8AtczCNzaHUD1l5fSxrPebC3zIBm1Iv8JeaF4SVURmURS3AZmmb6fyuh2NO4NcO48QK0fnYuRt4SDmnTtoA8fbSPIgKN3VJbI2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=networkplumber.org 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=Xm3P4G0+rkWobK+sNPzm07Mo+3TTbxBwD3LAP5xc+1A=; b=ZlFZbjuvdGsi9WWD3Fm+uKgRFLkJHuP+kdj+sQaKTKXFykaHVr6n6qRFtEN0ESK7Nqfj750bxBQY6hw7on225gm/pGSTDJiRWPhNFg3MHkJ0DGDUZn3tfq7M0Mwln0W0t3FrJ8Vrf5PHZM1LhE/hbWwHEK/R3ERKzCDpVC9+Qea/8NOjUwmAOospzqudg6yBuKPnivV8A7AMOVrTUkAvubpF7IbXW9YxtMQPpoQJ93GQzKpjuQNRaDQ7PiDV2ycxKcu2aNOORYc3M1QXzeu1NHjQ6iRFv+KiHLXH1tMDaO2Kb5i3iYM4+InIsSa+U5Tq6ibvpNszVO2sr7caHAktIw== Received: from BL1PR13CA0119.namprd13.prod.outlook.com (2603:10b6:208:2b9::34) by MW4PR12MB5665.namprd12.prod.outlook.com (2603:10b6:303:187::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 06:32:09 +0000 Received: from BN2PEPF000055E0.namprd21.prod.outlook.com (2603:10b6:208:2b9:cafe::eb) by BL1PR13CA0119.outlook.office365.com (2603:10b6:208:2b9::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.12 via Frontend Transport; Mon, 11 Nov 2024 06:32:08 +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 BN2PEPF000055E0.mail.protection.outlook.com (10.167.245.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.1 via Frontend Transport; Mon, 11 Nov 2024 06:32:08 +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; Sun, 10 Nov 2024 22:31:56 -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; Sun, 10 Nov 2024 22:31:52 -0800 From: Xueming Li To: Stephen Hemminger CC: , Chengwen Feng , Chenbo Xia , =?UTF-8?q?Morten=20Br=C3=B8rup?= , Konstantin Ananyev , Wathsala Vithanage , dpdk stable Subject: patch 'examples/vhost: fix free function mismatch' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:27:13 +0800 Message-ID: <20241111062847.216344-28-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241111062847.216344-1-xuemingl@nvidia.com> References: <20241111062847.216344-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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: BN2PEPF000055E0:EE_|MW4PR12MB5665:EE_ X-MS-Office365-Filtering-Correlation-Id: ff5692aa-8536-4c43-0691-08dd021a914e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?VEFLR2lkTC9tZUdiVzRLaGx4cGY5eHpBemo5N0hFYUFrRjZZTjQ2R2FBZUhS?= =?utf-8?B?RCtudytnT1IwQ3l5dUFHNFZtc1pFYXE5dzliUUI5c0xQdnpJU3NsMFExbkRn?= =?utf-8?B?cEJia014cHRlYkQzMUo4ZXhvT3U2azYwRFQ0UEdYbWtwbGp3L0MyNE1WcmU1?= =?utf-8?B?cm02alF5TDhBMjFUaEFYcVh2bXJwRkN3MjFqL2NZVzBCR0tGUFd0ZEkwYk1q?= =?utf-8?B?L1ZtN3k1YUhDc0QyemhKWVhKVWd2Rlc3MUg4K1h3aDhBV2NOVjZJL1VIOE90?= =?utf-8?B?dDNtQ3l1U3paRVhiSnZDcGRnVFFIVWFMWEtIYXhIMkN6OE80M1pjbklDVVhv?= =?utf-8?B?RDNjSEYxOHk2TWwzcjRMdHN2Vlh5VDZlTWQ3LzdSaHJOWFB2SWt5VWxXUVo4?= =?utf-8?B?MFBlTnIySlNIVzhKTU9uY3E4UHhDV0RlOTJ1SldTMmRlZkNBV3ViVlRWbU5U?= =?utf-8?B?NGNaYkJFYXJ4cFE2VVZwQXBsQTlMSUxqZWEzQTNBTUlENysx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jZoT2lJUVo4ZTlCVjV2ZHMyK0N1?= =?utf-8?B?aDgrV1VYUTlxTnVmSzhaa25YK2dGSk14M3JhVWRvUDgxMDBpc2tib2NCdHVk?= =?utf-8?B?djArSmRvQkhUZlF3UXhxdHFoS1hQS2pLcnIvWjdiZnFyZGJ2M0NCbExmSEcz?= =?utf-8?B?djNXWHFXSS9jOTQ3RXVOKzJ6SGZ1M3NPcEM5TDJBL0QzNDhKc1h2VXZlZFc1?= =?utf-8?B?N2tTRkx0ZXVKWDdyZUpVajU3Mnh2cXZzNFZHSTlKc204Q1MzeUVPbnh2V3cv?= =?utf-8?B?WWNZTmJGcWgyRlNydnVhQXAzK0NieDlOWVBKbE4wejgwRVpxc0ZiRVhKQ0xu?= =?utf-8?B?WDRFT0pTY1F5ZDVaTjVOdHJyZlJyZUIxLzBLNVZSN2JvMjZqSDFTU1o3VnZS?= =?utf-8?B?Q3B2LzlNanhZWjUwZjB0bEtudC9MZ1R3TDFqaDMrVVp1b1VjOExxK3QwQ01H?= =?utf-8?B?M2ZjYTlic3Y0WlRlSStzcGJJaTJ3a2JlbzRSS3U2T2pPNEE9PQ==?= 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)(36860700013)(82310400026)(1800799024)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:32:08.4662 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ff5692aa-8536-4c43-0691-08dd021a914e 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: BN2PEPF000055E0.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB5665 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 11/30/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=780c6918ffeccf266bf5505dc2b315a348d60d1e Thanks. Xueming Li --- >From 780c6918ffeccf266bf5505dc2b315a348d60d1e Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 8 Oct 2024 09:47:09 -0700 Subject: [PATCH] examples/vhost: fix free function mismatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit ae67f7d0256687fdfb24d27ee94b20d88c65108e ] The pointer bdev is allocated with rte_zmalloc() and then incorrectly freed with free() which will lead to pool corruption. Bugzilla ID: 1553 Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample") Signed-off-by: Stephen Hemminger Acked-by: Chengwen Feng Reviewed-by: Chenbo Xia Acked-by: Morten Brørup Acked-by: Konstantin Ananyev Acked-by: Wathsala Vithanage --- examples/vhost_blk/vhost_blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vhost_blk/vhost_blk.c b/examples/vhost_blk/vhost_blk.c index 376f7b89a7..4dc99eb648 100644 --- a/examples/vhost_blk/vhost_blk.c +++ b/examples/vhost_blk/vhost_blk.c @@ -776,7 +776,7 @@ vhost_blk_bdev_construct(const char *bdev_name, bdev->data = rte_zmalloc(NULL, blk_cnt * blk_size, 0); if (!bdev->data) { fprintf(stderr, "No enough reserved huge memory for disk\n"); - free(bdev); + rte_free(bdev); return NULL; } -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:06.589520410 +0800 +++ 0027-examples-vhost-fix-free-function-mismatch.patch 2024-11-11 14:23:05.052192841 +0800 @@ -1 +1 @@ -From ae67f7d0256687fdfb24d27ee94b20d88c65108e Mon Sep 17 00:00:00 2001 +From 780c6918ffeccf266bf5505dc2b315a348d60d1e Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit ae67f7d0256687fdfb24d27ee94b20d88c65108e ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org @@ -27 +29 @@ -index 03f1ac9c3f..9c9e326949 100644 +index 376f7b89a7..4dc99eb648 100644