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 EB1BE42B6F; Mon, 22 May 2023 11:24:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA23E410DD; Mon, 22 May 2023 11:24:31 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 03829410D1; Mon, 22 May 2023 11:24:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684747470; x=1716283470; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=d8Lt6LMbC6pxdPxK0qey4SexgHj6GYxsi3kOS9rvgjY=; b=miZ2wNaYpUniuEEZGJylMpHusseHUKXN4wbsDeCeUmOqwURwbvvPLdXA 3H2kTBwA5PvUDIGUjTQR89dzBAhN/q48nGB8VTsPCX5e9qpoNbAgA437K 4kA4RqU7JEE36P0JN/gbjff9cg4eO6snG8WwD2OVmjT03mzwjwCIN0M2D Nfs5ici5cGkBcuvrC2Mxic0nqRWdH6/cqn5stR5UVHncJ7lH098vULlBs +i4zVSgiVH31oswf8YzQiXLtuvFiXBD8Ak9kLJS2rX3sZQWPIt9csUcta wKv3bAebjKB3dczFcG8PGykgtPmlxgi57bSxOqQMHKQ50ihGrDvu5DTaf g==; X-IronPort-AV: E=McAfee;i="6600,9927,10717"; a="332482010" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208";a="332482010" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2023 02:24:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10717"; a="1033549578" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208";a="1033549578" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga005.fm.intel.com with ESMTP; 22 May 2023 02:24:28 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 22 May 2023 02:24:28 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 22 May 2023 02:24:28 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Mon, 22 May 2023 02:24:28 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Mon, 22 May 2023 02:24:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cBw+ngfcigzjBZ7oN/6br6y7L6cvtRnRoXpYdteD7OSqwHUZYgzSW4VEmEL+w16vt0iJA6nYiNPaupGbQ/SGl07npplUDCRiCgdYA/7Ihi9Ltw5bSZd/Si5MOgX9bgzN/1l81Z3oicQ3JUR7lvTIO/nZcnGK5mcoN0sBPxMqM2gIM90MUk1rou1n7ssDUU//WDc93S3rJrtxYtPrt5CMT9PrtHjdLIyAQ4p8Nfxz9xru/k3cVBeYP//Ko69t0E/H4tZ8foxYi0g6ZZse7T6tfgxP1/cN70r9AllbzE/wVQYK5F1ZSi9MT7D4m3kgf7rYkYuao+MvuoGqRX7Ari3cSg== 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=JY52XWtRCKW5Joqiw7bf5SZ+bup94yACXnBP1i1wvqc=; b=agDHF3SnqDirzT6eEASmnNWBYs5Zr6BVY4fOCksj087dHiTeG20JFWkP6Us/GLrJ2gjBibmVV/EO9tyQhzBwdo4jK2TcP5g3NsNFPlota2kAmY2WXr9MEfxuY792kHDE4GTPWdOniGz9dyJf+sO+P3dk7ER7bRZDtyY0cf+iIzKjQcp5MrqcdGlzDtv0uBmeRevbJXZRuu5XhIOaMWdFPMd3EC4gI+ZJvWQk7q10fD9FdrY5XxseP8bA2XYc+S62KNxjKprxH5lWqT7RKqIykIFvFA3RvMUpEwC1dNNBc5XWTqtyNZq/R6Q7MHJOYE5Ko46RZxhfsF/pUDo+nvGCCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) by LV8PR11MB8559.namprd11.prod.outlook.com (2603:10b6:408:1e6::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Mon, 22 May 2023 09:24:26 +0000 Received: from DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::49c0:aa4c:e5b4:e718]) by DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::49c0:aa4c:e5b4:e718%5]) with mapi id 15.20.6411.028; Mon, 22 May 2023 09:24:26 +0000 Message-ID: <2613b0c5-c3a1-60e2-9472-db84fe87cdb3@intel.com> Date: Mon, 22 May 2023 10:24:19 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.11.0 Subject: Re: [PATCH] test/mbuf: fix the forked process segment fault Content-Language: en-US To: Ruifeng Wang , CC: , , , , , , References: <20230522060137.225154-1-ruifeng.wang@arm.com> From: "Burakov, Anatoly" In-Reply-To: <20230522060137.225154-1-ruifeng.wang@arm.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB3PR08CA0013.eurprd08.prod.outlook.com (2603:10a6:8::26) To DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6502:EE_|LV8PR11MB8559:EE_ X-MS-Office365-Filtering-Correlation-Id: 335100c5-b5c4-4d40-0eeb-08db5aa65616 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: u/Hid6CRIXVfd5Ysfe1ynZ70aKLSa3tycd7XTnX8NHFic9Q4sHYjoRmXUO/UXw1A0YDDbPyTGnKJfKGpNM3DxkSx63d3zilQ0qYxTcYJBvnV8H/+TiCgUQLzcepIKyc/df7Na6dgUCiAyk+uVuN4dATKej7Ymm9G+pGMeTAlq6SFnd1XjTAGJL19VqMHJIYi5F/NjkCtKrsi0vUMOANtbdjuPrUoR9ZNkjY2IM29yjRkOjl4n0S+cw2YeL/KYjhVbBs3f8Hbxd1bAnH2TLehZXksIRrkD4RakOCl2+YtW+/syVkwhnruY8rrYwRf4A5PVwFP5jXuo5KxtZZr/mwKv5HJF2Bj8goBH1VGqzyF6MYUj6OtWR8dT2qEFmuzRVoM5xmcYIkiFUw4cc79Egjt1JYjUa0m5wcJr4uhyrvclRwLcZ3xo0QvbpXh8QR2ZRQRDtN2577wEpDZsTIwb9/XcU4XY6h+tfTe9rtn3q0h39g4V2FGa/KuX66WhSpysb/+gLPNAtWqxpziIZngTTYSoq2bH9yhHDPQZErNrcQwFVSTo84AALRFy9CgEHQG0RNi9OTrunDEmbKcpmQGy5I6sHxBilYJlnYZG189eS2aDpVwjKocqITUyYwZ+W2jHVtixcxG5DACnO5RxUhBDJ/LPQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB6502.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(136003)(376002)(39860400002)(346002)(396003)(366004)(451199021)(31686004)(4744005)(2906002)(5660300002)(8676002)(8936002)(41300700001)(316002)(66476007)(66556008)(66946007)(478600001)(4326008)(36756003)(6666004)(6486002)(966005)(26005)(53546011)(6512007)(6506007)(38100700002)(2616005)(31696002)(86362001)(186003)(83380400001)(82960400001)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QVRKVDJ1dUgwN0k0anozcHNjejNaWXFLMUcrRCtWTWdoclBFbkdGNllDdnpE?= =?utf-8?B?TlRIVVhJWTB1WGlKN2laYThXaytrTWJGSTd4a1o4RFhGN3EzM0p5eld5TGh1?= =?utf-8?B?TENndUhpZHZ6cXRvOUthZTNjSU95Q0N5aVE2T0tNdWhlTER4N0hmZTNMZktZ?= =?utf-8?B?YndCdEVNSFE4NDBHcER5SWw5R3hyeG5OKytvN2hjMjhKWldrRm9kRWdBY2dj?= =?utf-8?B?UzJ2NDdkV05sL1o1SUhmSFhkOFdMZEQxS1JhMHVONldLRjlTY2dvRFNjOUwz?= =?utf-8?B?U0l0RldqWXQ0WWtm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= =?utf-8?B?RytMT0VvZ1BBMDBrRFBGaHh6dDdMNWlTRCtBRnpkRFgvY0wydjVWSy9XWlI5?= =?utf-8?B?M3c9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 335100c5-b5c4-4d40-0eeb-08db5aa65616 X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB6502.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2023 09:24:26.0795 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NOO+4304TpAriA7Q2sdRbIA5wWCEMFRa+uPmHf/udXcXuWIJ4ozw7mATfBw1zGxcpjOaGipWI0R1yj4mjDKB7CU2pFffeKUsewLkCcixxhc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR11MB8559 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 5/22/2023 7:01 AM, Ruifeng Wang wrote: > Access of any memory in the hugepage shared file-backed area will trigger > an unexpected forked child process segment fault. The root cause is DPDK > doesn't support fork model [1] (calling rte_eal_init() before fork()). > Forked child process can't be treated as a secondary process. > > Hence fix it by avoiding fork and doing verification in the main process. > > [1] https://mails.dpdk.org/archives/dev/2018-July/108106.html > > Fixes: af75078fece3 ("first public release") > Cc: stable@dpdk.org > > Signed-off-by: Jia He > Signed-off-by: Ruifeng Wang > --- Would this be something that a secondary process-based test could test? That's how we test rte_panic() and other calls. -- Thanks, Anatoly