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 22D4C43E57 for ; Sat, 13 Apr 2024 14:50:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CFBE40294; Sat, 13 Apr 2024 14:50:52 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2047.outbound.protection.outlook.com [40.107.237.47]) by mails.dpdk.org (Postfix) with ESMTP id C6AFC400D6 for ; Sat, 13 Apr 2024 14:50:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nPIv4T/H3WoOb7HlFxCLwe/vAnTB5OgNU8fkQpF91bWDjKDdCdi+Gc3wJhCmXDNyQ73AFFsU4kD3Hcf4Otvv9rmYzcZj4kztmOhS/ZLUhh2iYIj9x9BbUllfHrgZv4nOVHsEkSwWwNQe/G7s1IJV6DxSzKRnnAknPUP1+iuEZ40nYvzZUmaSnfaRlfXCagzEO7sNkWDzf2HXPmmeDkUtbglIYH6MuS9EvtKXsVviU7QE1RFlgEGFDBrS/TiDAeKfOGXHgfl9Wj0Qdt0Ppvd8ZFFunvL+C2mU+yxJP6Tm839t8gZSlXn4AAoxsFl6ZUGnsW/fueNbSvI66YdUmn4bYg== 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=N/ukVKCrzv82yQ3tcOooBkv5HptcFHUGckTjQtNO+kI=; b=IKoDm7j+8M5mGUZPlUJLBd6B/lqdas5VjsGEUKHjuvbFm4+jiuJZZ3Pv9cj8O3qx08AbqfH2w+TpEzlbSnUZV2+pOqsTY1+1rGsOSqKKHf2G/4Z1t3szhDc8NyUaDpDV7yc9sQMASkbnFmZ7AxYUYUOjII1hpIJLucR2Avcx2W6z1nLO0MtySkFEP2XKyG62/QZB3c+NBfh/ASQdjQwfaTm07IuXAseB+u/SBfQyJJfIYlp1j73BAKvrv5z+NRVWwOJfMA/wpRlr4AMB+IThPpMaFKsaVPRUFbxl1U9yGhEeu0xb3A9xtX9AnmOVvm14QDa3OfbdPJXyVH17noDCdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=intel.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=N/ukVKCrzv82yQ3tcOooBkv5HptcFHUGckTjQtNO+kI=; b=LCocwyivwY2x5Y40d3El18r0v/OdSs7RWFY8cjANMfghYUKI43F1nl/ix639/vXNJ/ShwyZLimiq+fPVHViMD8eLI6Yldohk6OvU4W01W0RG7J1fwnPRQGMvBb7PF5KbXjwPBRWaXQlpqZcluh4mpC8N7dn9J+42Mw+3xyYLQ84l5vLCUrX0EmKhK8uCoIJi8n9MUqZkRYtFI/uCh5f/fKS82GFwQFEshnmvXCZH2IPxtK5Fxs072iz7i/UBm9UcwqX+XSi33xEpHVojwN9HHORLLzDNEc+G6BrkXQY/EmVzxiHP3Ix3W4jMvjkWsfax/V2jIw0QsucYdAVCCGyBAg== Received: from MN2PR05CA0014.namprd05.prod.outlook.com (2603:10b6:208:c0::27) by MW4PR12MB6950.namprd12.prod.outlook.com (2603:10b6:303:207::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.43; Sat, 13 Apr 2024 12:50:48 +0000 Received: from BL02EPF00021F6A.namprd02.prod.outlook.com (2603:10b6:208:c0:cafe::4b) by MN2PR05CA0014.outlook.office365.com (2603:10b6:208:c0::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7495.16 via Frontend Transport; Sat, 13 Apr 2024 12:50:47 +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 BL02EPF00021F6A.mail.protection.outlook.com (10.167.249.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Sat, 13 Apr 2024 12:50:47 +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.986.41; Sat, 13 Apr 2024 05:50:34 -0700 Received: from nvidia.com (10.126.230.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; Sat, 13 Apr 2024 05:50:33 -0700 From: Xueming Li To: Ganapati Kundapura CC: Pavan Nikhilesh , dpdk stable Subject: patch 'test/event: fix crash in Tx adapter freeing' has been queued to stable release 23.11.1 Date: Sat, 13 Apr 2024 20:48:04 +0800 Message-ID: <20240413125005.725659-4-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240413125005.725659-1-xuemingl@nvidia.com> References: <20240305094757.439387-1-xuemingl@nvidia.com> <20240413125005.725659-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00021F6A:EE_|MW4PR12MB6950:EE_ X-MS-Office365-Filtering-Correlation-Id: 63d117d8-8ac5-461a-5e39-08dc5bb85727 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B5AK69bryTf+9PuE8z64gmRZT2KwjzVnJTyyT/EG5gFopntYZGPCYWqGB9Yj+g2gHoBDt9Zgtiju45Wuanl4l/Pe+P7bRcdIpjEqstYIx7osw6e2EnQp04H/UMXSkS7R/gaEfXkyOU2dIEvufPavZID+gu4sbupNKiBA2czEVE4ylcVCQRprmAy2IacGaFIZPTZ8egyS5awyc60iIPyEA8om60B+xkB4bBw6Gji9J+sDV8j0uZelcyT3ksswG6LIx0oF4+O/M4I0QffuZ2lMjSLc3sVL6ZHrHEo1JKM27VbD3PZ9CkhtaFcxKAl8PrugbcpbuDxN0/4COrBO6S9BORdQZyMsm6H2IpK4rHucDGXwQW1hD3b23FAcSIt9uVQ76KH5L77vcw9hH9HM4ldYgtXLW0rVh2SlfrhXabEDJo+3yNFt1ZZsum6ecqKcPvGK5S9jD9W+tgOrORJ84KEyJzugUFCSrGOrncqF17hyb8q5Yyh1imzuq4MZLntp8u9BndRm6gmgmr/dj0EqfyTIx9NO70D/chIKbz2+OZFHUYpA0EoHzyQL1buDW0q3t1COWOZP0UQE0UU79AoT7Puu+jLu1B5Jxm/UNsfzbsVRs2y+eeSyfF9IHSDHxADOss4oBTjJ8AQTInhb5SB/53EOdTnYILywfu/hbF4YKy5cIrnSXI60wJDYe4TbGWTapvGLLyyOtkTtO+QP7Q0L1yDaBMg8s0Z8SUXljDYT9lzWoB2L0Q6peJCHJiWcBsDxVoJB 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:(13230031)(1800799015)(82310400014)(36860700004)(376005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2024 12:50:47.1888 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 63d117d8-8ac5-461a-5e39-08dc5bb85727 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: BL02EPF00021F6A.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6950 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 04/15/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=7721c9f49898ed88162fdf4efb22986cad8018fb Thanks. Xueming Li --- >From 7721c9f49898ed88162fdf4efb22986cad8018fb Mon Sep 17 00:00:00 2001 From: Ganapati Kundapura Date: Mon, 26 Feb 2024 02:30:03 -0600 Subject: [PATCH] test/event: fix crash in Tx adapter freeing Cc: Xueming Li [ upstream commit 1f85467fcaf03c6b0d879614ee18f9a98fe9e9e6 ] Uninitialized mbufs are enqueued to eventdev which causes segfault on freeing the mbuf in Tx adapter. Fixed by initializing mbufs before enqueuing to eventdev. Fixes: 46cf97e4bbfa ("eventdev: add test for eth Tx adapter") Signed-off-by: Ganapati Kundapura Acked-by: Pavan Nikhilesh --- app/test/test_event_eth_tx_adapter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/test/test_event_eth_tx_adapter.c b/app/test/test_event_eth_tx_adapter.c index dbd22f6800..482b8e69e3 100644 --- a/app/test/test_event_eth_tx_adapter.c +++ b/app/test/test_event_eth_tx_adapter.c @@ -484,6 +484,10 @@ tx_adapter_service(void) int internal_port; uint32_t cap; + /* Initialize mbufs */ + for (i = 0; i < RING_SIZE; i++) + rte_pktmbuf_reset(&bufs[i]); + memset(&dev_conf, 0, sizeof(dev_conf)); err = rte_event_eth_tx_adapter_caps_get(TEST_DEV_ID, TEST_ETHDEV_ID, &cap); -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-04-13 20:43:05.327714801 +0800 +++ 0004-test-event-fix-crash-in-Tx-adapter-freeing.patch 2024-04-13 20:43:04.897754062 +0800 @@ -1 +1 @@ -From 1f85467fcaf03c6b0d879614ee18f9a98fe9e9e6 Mon Sep 17 00:00:00 2001 +From 7721c9f49898ed88162fdf4efb22986cad8018fb Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 1f85467fcaf03c6b0d879614ee18f9a98fe9e9e6 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org