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 7C5E1428F8 for ; Sun, 9 Apr 2023 17:34:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76FE541149; Sun, 9 Apr 2023 17:34:09 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2083.outbound.protection.outlook.com [40.107.94.83]) by mails.dpdk.org (Postfix) with ESMTP id D513142BAC for ; Sun, 9 Apr 2023 17:34:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PSQPuaoHl88Ne4aaEKdlkJfGPbV3VkWey6dDkjgNxqw6XhJBT6l264Hx15hHJV+N/lAyD/y7lG8lHATgqQRBBxJpbceP1ql2tVDZaYaEIMTV9NVzAbQ5JFXbgSmlIy54HaUhDacG7hIKpj1zMQrC0wRGWXdkC4uKV4l05mAD8IedwF4DOgbJ9+bHhdYQrFYHY4ylmeVMcZZo1Ep9aWaGf1UjxBmj1xIqRkb4U/iJ+JrWc8SLtXec5hmT/zwq58BJIKgAIEzBfTAj3ZnPY/MvputTLbaPWCsUorsKdJgDqsRO16hBl/pNNKlEx5iP5x018fek34ak0POXvpDsj5JzAw== 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=3UecjvtSnGJQvyCd8vyKKDsemGeBZ/NC08y7vuLH/QI=; b=RjndJdGSm1lkEafaozI+v/WiJDX6hqCF5LWJmwah7R6M/dFaHtWzXeygujyICONkHyJC/YgBL/mOLkOoZ9mJzDivOpSkh7Pe3w+l3ApQRZrPyAZ50YetObxbz8vgOnj0YWByPk6JASQRLtmQKctDSgtzrY7cA/r03C/5rF9Ec34gxme9qub21lF+Cae8IAr1xMU662VXFSajsdofY5pWsuTH99A7Q8H4EsCfGrGwef839G9GC9DYPHqxh20eXo62OdcQCvRLk87xPHl1cEP0eQS+PAg4PoELb3OimG6YSH7GFmNw8qPv2pUWoiEkQpvN/fkDA3geuzirLdEAYWWOfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=nfware.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 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=3UecjvtSnGJQvyCd8vyKKDsemGeBZ/NC08y7vuLH/QI=; b=Qgu23KmL2HjykADQyuLTkUIBv8keZGNffQkCoHCtTBMLxelcMjanq5KuKV17TZgv9gz2pw+TUWVpuqhFnysqA1jTQ3J/+o7Z8t1HeO96fTdBExvX3jYANPJE/ZdyX5hlCWsVMKHrtfmTVtTjKo5GqGpbzMsafXcGb3JEFqx8L+4B84GxicNe6SSJkgQKY2iPeV/KRQI7JCQvX1WP3y5LVha+Qti49SM9G0axVYBbJipfL5OaV+m/CkDxj9TS8tK55u+HRtQKOPKxWIPpZDOki/RV3EDU03C5HQYA+RGxDgymgY25/Wc7wRICSMRKuw+PrLW3L7Z9DgkkiZlj3f54CA== Received: from MW4PR03CA0156.namprd03.prod.outlook.com (2603:10b6:303:8d::11) by PH7PR12MB6564.namprd12.prod.outlook.com (2603:10b6:510:210::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.36; Sun, 9 Apr 2023 15:34:03 +0000 Received: from CO1NAM11FT030.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8d:cafe::bb) by MW4PR03CA0156.outlook.office365.com (2603:10b6:303:8d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38 via Frontend Transport; Sun, 9 Apr 2023 15:34:03 +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 CO1NAM11FT030.mail.protection.outlook.com (10.13.174.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.20 via Frontend Transport; Sun, 9 Apr 2023 15:34:02 +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.5; Sun, 9 Apr 2023 08:33:57 -0700 Received: from nvidia.com (10.126.230.37) 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.986.37; Sun, 9 Apr 2023 08:33:56 -0700 From: Xueming Li To: Pavel Ivashchenko CC: Olivier Matz , dpdk stable Subject: patch 'test/mbuf: fix test with mbuf debug enabled' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:24:47 +0800 Message-ID: <20230409152529.5308-100-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT030:EE_|PH7PR12MB6564:EE_ X-MS-Office365-Filtering-Correlation-Id: 3726ff2b-d50f-4223-7c42-08db390fd8fd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b/PWQjlRELIgL03yCCq3U6pirz8WkbMcfukAcYrzpc/aceAwduble2k1O3Bz54dzWL8q042Dy/ZXf8IwuI+pSVVlcrWBDo2bl1LxRPwnWX2banygD/b26IK7y2tGmwDHx0opZ/YtweQOqoMKQeri6kuJx/NMwRSla85oL17/HZmRtHe/ss9LDDgZWMxgLUwu+xaerAJpj264RYdYgGjszhw3FYcSbB+nL7XXp3a4HXy87fbKvjVRX/vZP/lKWSpKXge00ftO6gOohqC7TdXGZpx2PaRuhpc3onAA3WP96Z9sXsIUX7+rY6JQqvpL8szdedk19TwTZX/dCQX+qPQ4dMF8UH9IaUIkr49efup58yyNG34zenmdVnrkIIhaGN5fWLvhLKyJdAKVOUY1Wpm6+Vw8rJPHzNYLzHuaZpL5RfdGurYXmzvIRyx2khXPKymRPU8gja1f/jw4icU8M8kDxo1KG78mw4tSOoEUOakJcejf9lcwmcJiQ7uAVGqUxSXMhmh5zPLUMEBCSuKk6c5alqO8/eOWn6BPvA+TQbLTqqiZzc8LPCg+GJjtaOwm7PTnOCI2Kz1ZLHMUKJTWCV6Q191Do9kBIaDpt9dE8yTqL420aVH8rskuuEqnk/O62tc0dXM6UiwWZSKsng6N+g6F4jz5Fsv10hEjrgPBj5PlXkHIPkLnb+9Rzsj5gzteyTgPwb7eQ90uc9oD0TdHPS77C/nwdABmSLn3lEEziSmxv8p1jEvrZljZE/tcil83cAAVXe0oVtqhBBEpwvy67yzf6HFuwaX5cgAoRxA27NLPL3cb5YBMxQWQ92dtSSENlcspTwvWvRQf+tqXqChBwO1/UQ== 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:(13230028)(4636009)(376002)(396003)(136003)(39860400002)(346002)(451199021)(46966006)(40470700004)(36840700001)(86362001)(336012)(426003)(26005)(1076003)(36860700001)(2616005)(82310400005)(47076005)(186003)(40460700003)(16526019)(6286002)(2906002)(53546011)(36756003)(5660300002)(7696005)(966005)(8676002)(8936002)(478600001)(6666004)(54906003)(356005)(7636003)(41300700001)(82740400003)(316002)(40480700001)(70206006)(70586007)(55016003)(6916009)(4326008); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:34:02.9747 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3726ff2b-d50f-4223-7c42-08db390fd8fd 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: CO1NAM11FT030.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6564 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 22.11.2 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/11/23. 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=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/29cdc2b88f04b2c459705a24274de32d53001fcf Thanks. Xueming Li --- >From 29cdc2b88f04b2c459705a24274de32d53001fcf Mon Sep 17 00:00:00 2001 From: Pavel Ivashchenko Date: Thu, 16 Mar 2023 22:14:56 +0300 Subject: [PATCH] test/mbuf: fix test with mbuf debug enabled Cc: Xueming Li [ upstream commit ce5440e0350df101443aa4d0e96bea0a06ef9364 ] How to reproduce: 1. Define RTE_LIBRTE_MBUF_DEBUG 2. MALLOC_PERTURB_=178 DPDK_TEST=mbuf_autotest gdb --args obj-x86_64-linux-gnu/app/test/dpdk-test --file-prefix=mbuf_autotest PANIC in rte_mbuf_sanity_check(): bad pkt_len ... #6 0x00007ffff7d3d4cc in rte_mbuf_sanity_check (m=m@entry=0x17f8c3400, is_header=is_header@entry=1) at ../lib/mbuf/rte_mbuf.c:384 #7 0x0000555555653d57 in rte_pktmbuf_free (m=0x17f8c3400) at ../lib/mbuf/rte_mbuf.h:1385 #8 0x000055555565c7a6 in test_nb_segs_and_next_reset () at ../app/test/test_mbuf.c:2752 #9 test_mbuf () at ../app/test/test_mbuf.c:2967 ... (gdb) frame 6 #6 0x00007ffff7d3d4cc in rte_mbuf_sanity_check (m=m@entry=0x17f8c3400, is_header=is_header@entry=1) at ../lib/mbuf/rte_mbuf.c:384 384 rte_panic("%s\n", reason); (gdb) p/d m->pkt_len $4 = 1500 Fixes: efc6f9104c80 ("mbuf: fix reset on mbuf free") Signed-off-by: Pavel Ivashchenko Acked-by: Olivier Matz --- app/test/test_mbuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c index 6cbb03b0af..1f4dd62466 100644 --- a/app/test/test_mbuf.c +++ b/app/test/test_mbuf.c @@ -2744,6 +2744,7 @@ test_nb_segs_and_next_reset(void) /* split m0 chain in two, between m1 and m2 */ m0->nb_segs = 2; + m0->pkt_len -= m2->data_len; m1->next = NULL; m2->nb_segs = 1; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:41.296890800 +0800 +++ 0099-test-mbuf-fix-test-with-mbuf-debug-enabled.patch 2023-04-09 21:45:38.719042200 +0800 @@ -1 +1 @@ -From ce5440e0350df101443aa4d0e96bea0a06ef9364 Mon Sep 17 00:00:00 2001 +From 29cdc2b88f04b2c459705a24274de32d53001fcf Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit ce5440e0350df101443aa4d0e96bea0a06ef9364 ] @@ -36 +38,0 @@ -Cc: stable@dpdk.org @@ -45 +47 @@ -index 81a6632d11..8d8d3b9386 100644 +index 6cbb03b0af..1f4dd62466 100644