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 5FCE645CE3 for ; Mon, 11 Nov 2024 07:31:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 52CE04067A; Mon, 11 Nov 2024 07:31:06 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2057.outbound.protection.outlook.com [40.107.92.57]) by mails.dpdk.org (Postfix) with ESMTP id 9887D4067A for ; Mon, 11 Nov 2024 07:31:04 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=h+dpP7zAHqC8NDkYuC2C4xM16c6OVH9WUvrHhTNF6vshONu25aS4HAFfnqlb1fmgi7d0zrZIzcWrAE6daOUZGpgRAJYxJGSfVDwE46PmjMSJ8G8iKF8/BfmlkjsljVHeVI3yyoPeZQHiAp2nvB1JzsS0BwvS1k0K+/vNva+HptpgM8MuTKtoT1bYW0L5zVh2bwtgffrDSiROAmcPfK0OY5hhSs28vNKBzDh4xhD2RFuGkELJY7JT3FsK5HFFONAbCL2/lnnj7YgHNiGUF/3KrO6LkSMXzMfA2/3PFXDfyxQv+rlT5KDqmGM3tqFvqnEak/ffght47SHdi/vuKKGfow== 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=AhJCFc4nLrWj7WFA+XxO/E5TU69/8AWu3zxIzA1v6RA=; b=eQJE1OuzC+zD/dUQ3r/Px0wn59PK293qawHzH21ivxS6sj1b+/D7iacQkLFkevt4OlF2jzeS0MlDwcHImsw2+YZRC/s8kmwvoARv0zQuJtu6btAVDRp7J61+sWgCZjmALYu5zOEgeA8onZDcdOYwoHJYw5OdOEsBBP3tiasLHN3MiApwa8OeFqJLHCLoNiHEMZbeW5PPF5C6WRcYbT/JfearzMaP9lnNJZk2ELpjycAHtH/LfLG+IA92nM0R9MP74Y3f36+wLnj9/RbGPkgWChhfst6VgoD/xksXePzj7Co+vzWQH+FoCydPQdMMv5rgXo9mjGHxkPe8Z1rvVwDy8A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=AhJCFc4nLrWj7WFA+XxO/E5TU69/8AWu3zxIzA1v6RA=; b=ngnDKhsk83ZwkXs1mPGo3t1RKWy1UkVHiZo7xne4RryEL8X/z9sVM9un+SjDGEjfYVnzH6Wrc9A5cFIE+HczDCzyokmF0MlVSBjNOI3NSO0JidV9Y5hCaqoI7fx3iNQKRic34NCpgN2RIdfFgRuSeBbf5xFSslLpp9AaodYKs+hH9+kylouXjL9/4lkzulaNNpgl2BNpc6rPjcTXtNxsJuW9VO5N3gw2SpJcrMgnRojq9Pvr3Bb4JqxLH3JKtiKmE4v8YWIdmTvR69kBTTY5dliCIVjeT8qCblpOfNfD5O3IqgA3cpioniRXNZBBOIMoCprlu/gYfCzqzrhANvwIhQ== Received: from DS7P222CA0012.NAMP222.PROD.OUTLOOK.COM (2603:10b6:8:2e::15) by CH2PR12MB4213.namprd12.prod.outlook.com (2603:10b6:610:a4::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.29; Mon, 11 Nov 2024 06:31:01 +0000 Received: from DS1PEPF00017094.namprd03.prod.outlook.com (2603:10b6:8:2e:cafe::d8) by DS7P222CA0012.outlook.office365.com (2603:10b6:8:2e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28 via Frontend Transport; Mon, 11 Nov 2024 06:31:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DS1PEPF00017094.mail.protection.outlook.com (10.167.17.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.14 via Frontend Transport; Mon, 11 Nov 2024 06:31:01 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) 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:30: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.1544.4; Sun, 10 Nov 2024 22:30:45 -0800 From: Xueming Li To: Stephen Hemminger CC: , Ajit Khaparde , =?UTF-8?q?Morten=20Br=C3=B8rup?= , "Konstantin Ananyev" , Wathsala Vithanage , dpdk stable Subject: patch 'crypto/bcmfs: fix free function mismatch' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:27:03 +0800 Message-ID: <20241111062847.216344-18-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: DS1PEPF00017094:EE_|CH2PR12MB4213:EE_ X-MS-Office365-Filtering-Correlation-Id: 8ba51eda-8d61-471a-4b45-08dd021a694f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?B?NHcrb1U5K2gvSEwwaUgyRUoxV1UrSklyUEFWK3ZKNFBINlRSN3NYcStnQTJD?= =?utf-8?B?VGhyK3EyWm1CcVBNbURBU2JLcDQ4OWJSZkRTcE00dDZqVUUrRFJBdEhOQzdY?= =?utf-8?B?R2M3bHNkNitva0k2MVkrc0llT0tLSmxlOEpmYUtIdjFqdFY3UldhbGRSbnhE?= =?utf-8?B?V1F5VVg3Z0V2YnAySk0venBBUFlkd0RGQURSMHA5SnBWc1NIYVdHU2hTRDN1?= =?utf-8?B?MnhXSG1SY2RyWGY2b0pFRGlDa0pFT3dUZkhRQUsxVE9mWlA4a2kyYWlOd2x0?= =?utf-8?B?WWQ3TnpaOUZxK3g2dHVHYlZIK0YzQUI4R2s5dHpVUzdLNXNQa05pVWNqNUt4?= =?utf-8?B?eXhWS1ZTZ2pJVmlJM0o2UkZsVzhmVDFwdVh6ZFNUdnFBZVIxSW92WDBZckhO?= =?utf-8?B?OVFhWHVIUlN2dTh2WGhaWkJXellDS1YzL3VUWTFwL3R6WkhxTVhGTTkwSW5E?= =?utf-8?B?eWxCYTE3L1VGbTQ4YmxHN3FWcnhyYUhLQkVVYU52VEx5OW1ldVRHVzdEK0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1dG0relE0TGh6?= =?utf-8?B?OVNYbVZZaVZpc3ltRlpma1ZwUndPRHB5czRTblk3Y0dDamI3S3ZPaTcweG8z?= =?utf-8?B?TlBLKzNkbnMyWUdnejY5T0VCaGxPV3RHNUEvWmVhOFdrMWQvS1B6NXpXV3J4?= =?utf-8?B?Rkg3aTZRZUZHajkwWGZXZEpFVTRMOUU1UEhNakgzaFFHMTBERUQxaWYxWTVV?= =?utf-8?B?d3doZmFueFBFU2ZlOXUvUU4wQUl6KzV0UitOVjVhMVdWS0dDZEFZdHl6cTFn?= =?utf-8?B?SklYSE9DZ1hkK3VObzFNaDlYbmI1RW5Gamx6TU5ZZFNMdGd6RnM0empyOVM4?= =?utf-8?B?cUxyMGtTTytTaXI5bCtQcTdyQ3o0T3RTajBrR3EwczBsYldYOXBCMmpNMkIy?= =?utf-8?B?OWZ6anRNc2RRdGc1TDQ2Tk5tNHpOeDFRYUdMdTdTT3IyVWtpVnF3OHZPM1M3?= =?utf-8?B?ZkFJb2FTTVB4UkxQNTBVZVZtOGNOL0xoN3YrdCtEMm96TlE9PQ==?= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:31:01.4438 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8ba51eda-8d61-471a-4b45-08dd021a694f 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF00017094.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4213 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=fd941582eaf51694100db70a67551375476093d2 Thanks. Xueming Li --- >From fd941582eaf51694100db70a67551375476093d2 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 8 Oct 2024 09:47:06 -0700 Subject: [PATCH] crypto/bcmfs: fix free function mismatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit b1703af8e77d9e872e2ead92ab2dbcf290686f78 ] The device structure is allocated with rte_malloc() and then incorrectly freed with free(). This will lead to corrupt malloc pool. Bugzilla ID: 1552 Fixes: c8e79da7c676 ("crypto/bcmfs: introduce BCMFS driver") Signed-off-by: Stephen Hemminger Acked-by: Ajit Khaparde Acked-by: Morten Brørup Acked-by: Konstantin Ananyev Acked-by: Wathsala Vithanage --- drivers/crypto/bcmfs/bcmfs_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/bcmfs/bcmfs_device.c b/drivers/crypto/bcmfs/bcmfs_device.c index ada7ba342c..46522970d5 100644 --- a/drivers/crypto/bcmfs/bcmfs_device.c +++ b/drivers/crypto/bcmfs/bcmfs_device.c @@ -139,7 +139,7 @@ fsdev_allocate_one_dev(struct rte_vdev_device *vdev, return fsdev; cleanup: - free(fsdev); + rte_free(fsdev); return NULL; } @@ -163,7 +163,7 @@ fsdev_release(struct bcmfs_device *fsdev) return; TAILQ_REMOVE(&fsdev_list, fsdev, next); - free(fsdev); + rte_free(fsdev); } static int -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:06.212454218 +0800 +++ 0017-crypto-bcmfs-fix-free-function-mismatch.patch 2024-11-11 14:23:05.032192841 +0800 @@ -1 +1 @@ -From b1703af8e77d9e872e2ead92ab2dbcf290686f78 Mon Sep 17 00:00:00 2001 +From fd941582eaf51694100db70a67551375476093d2 Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit b1703af8e77d9e872e2ead92ab2dbcf290686f78 ] @@ -15 +17,0 @@ -Cc: stable@dpdk.org