From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 36793AC0ECA for ; Mon, 8 Jan 2024 10:11:56 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=d09BrnhjdRJ0EJT3OEgmy96aQ9eIJomiEJ2IZuzFJz4=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Message-ID:Date:User-Agent:From:Subject:To:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1704708715; v=1; b=NrtqSNlk/RL9c53A4IXKH9zaSsKksHbUO607aWqzyvtyjZkARMqO4/y3VKf5TQLkLzmJqNAH IPDRMuDC91O971EuL5rwaq091MBvlyzQ3IH8LMR9Gt1OpNo8yZvtWIg3phVzn5NQT0dx+WjCw1j 4f2/HlLh0wrcvyYsaYSLo6cM= X-Received: by 127.0.0.2 with SMTP id HybLYY7687511xZ4RpP4yW1W; Mon, 08 Jan 2024 02:11:55 -0800 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.136]) by mx.groups.io with SMTP id smtpd.web11.3657.1704708714821876905 for ; Mon, 08 Jan 2024 02:11:55 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KHiTvkA0AfF0OF3hGbsdKnGBb1b+Y1/wid2AUZwR4AJiEt3W3ehZMQqDa4JgyRsfQAhXMLSRI5fnTx87EoOFAXt311fF6Xsubd025WudrWQMLR7DiaX9EgqrqDbVRMyrqv6qlk78Vv2xLdKrFXi3JH2zaAVnyLHyYN9v1MTDH2nIwUDy/e5T+OOO3oB/22BMxb14++dF2DKNLI0NVif5MDcj3crvHqVQWdXtRbHVef1tohJTAr4JvSkPAhPKRxu23Jp9CPRrnT2uUARvvNdlT29zcY04jO9KJYyr1CQzVu3+cfWPXyGdYESwbPVfaQ14TQVjhUckIoSO2iA0FceMWA== 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=wg4hAlOHMPFrYBC6e7ZXgLbejlVR/7n4bp7RKRgccyE=; b=FLqU5rfNnJsUbfsCyomqeUmX5JHmQe0hUlL7Sj9HY5jIUf4r50LSVd79cI9VDwGVqQELxEo204FdyHeSF0bl8ZaWc1teE+m38A6g2gNpjRIdKjuN7oSgOFoTM/61j6rO6ne2J0t3e84AhM0EKo4SpR0CPg9YB8AjTrNVKibcaIdMfRrtDfyzTKfyLQGTy4pO9BSPvwDK6TrUFneySePfoVhfy5QxbxbM4GxqEqqogUw0U5P+TPtknYGy7vLeUJSSnzPdnZXn9atu3TdJ8N8rJgxSLNq9+v5JcBKhLO1Z386z375UWkBNUK6NcBCxg0KTb3FN0y6oTHFlO87AsXUcQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none X-Received: from PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) by BY3PR01MB6722.prod.exchangelabs.com (2603:10b6:a03:367::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Mon, 8 Jan 2024 10:11:50 +0000 X-Received: from PH0PR01MB7287.prod.exchangelabs.com ([fe80::516a:4d2f:440f:148]) by PH0PR01MB7287.prod.exchangelabs.com ([fe80::516a:4d2f:440f:148%7]) with mapi id 15.20.7159.020; Mon, 8 Jan 2024 10:11:50 +0000 Message-ID: <44ca139f-4d78-4322-b5b6-8e9788bb7486@os.amperecomputing.com> Date: Mon, 8 Jan 2024 17:11:36 +0700 User-Agent: Mozilla Thunderbird From: "Nhi Pham via groups.io" Subject: [edk2-devel] Memory Attribute for depex section To: "ardb+tianocore@kernel.org" , "devel@edk2.groups.io" X-ClientProxiedBy: SI2PR02CA0048.apcprd02.prod.outlook.com (2603:1096:4:196::23) To PH0PR01MB7287.prod.exchangelabs.com (2603:10b6:510:10a::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB7287:EE_|BY3PR01MB6722:EE_ X-MS-Office365-Filtering-Correlation-Id: b28cbb4b-d541-4ea0-133e-08dc10323a8c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: aBCf67hTREW+LGtg1ip7G7VdFvb6sF2OX1oKEEKSotYvQeJowoQyhfRhNWTuyicTbiKN0IG1oZzcg4MpWOeP+PalCVKjZYWDsKiVP/cI9e6lkZsbYC5+0cEySY02+xJE6pAatCBqXAd20S1BSnAOGn8kYHnQRt1jDuWvR0+3VlruuNWulzX40ZRIl8imPxzQ5ule136bzTuoxuO4a6obmuTqsYxI+Px25G03IqUPynpLfs9jIJowzfuz+eKaKqQr2d0L1ldCixlVYZnjqT8diUtuJuzGifUsQ3CYLsGA1k9qzSgESu/ZjXO+DUpr7HAH4uqRTkgz4l5O2A5sngHNrsVa3k0D+qFnBuVUdl4dN14oCVYWkKR0lD+0gOjNoqlG6Y2AAoSzUCoX69lXiomaDOerv7q0aQviCs3DjyVxKBFYZ15hnOkGoCsYckIBOXI17v5xnHi5Wi7OyBOwz096BOrqSbq07/i/191EfgnFJqX6Xxi78fGN6q5pYYHTD/rOVsQb3IbBGmcRDK6onv+MEGbdHJALPkndZHRUOxaPRUj88pwR0h+JaMdjgGfJORhdbhreeqrEK15/9m8Na61noPSOlIWflr5IyrZb0j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FNemhOWjVpZ3lNd2VDQUxzM25Xa1BoNmlKT0E5enhm?= =?utf-8?B?QlpyalJLc2VIRDdTRXNJTlQ3cnc1UW02RDFiajdoN2g0akQ2cW1ZRkdwWFJ1?= =?utf-8?B?bStjd0QrTkUrajQvVjhObk5kVytEY2t5K0RLeDlGelJIV0xZT0dzaGsvRUNy?= =?utf-8?B?RXlJWVJ5ejg1MmFvYlo1bDJUQmNmN1NSVklZSTdNNGxMUnFRU3gvNUtVdkxv?= =?utf-8?B?aHBpVzNkdU80Ri9BTjNWSTVkbnZURUtRWDd3aXlCOVphZXhGU0tEVzhxZ0pm?= =?utf-8?B?VzhQeUs3RFFaZjVOYnU0NjYreDdueWtlWVMwRTRDMXJxNHZuZUdIUHhvOXNv?= =?utf-8?B?NE9BbXBJOEd1QjErNnFrV1BJS1MrWGM0ZlZxQ3hTeUVQNmRoNWxLcS9nTXVE?= =?utf-8?B?TExlZTZ5ZEtuNDYwQ2Y1VkJKY2lHM2duUmtPZmFaR1FNdE5tWHB2MXhoa3RB?= =?utf-8?B?dUE9PQ==?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: b28cbb4b-d541-4ea0-133e-08dc10323a8c X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB7287.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2024 10:11:50.0327 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9ANo70WiRHm/RkTBkuODfcZDThH37U6cWkJtrI9AV9y22IdZYCmGvEq29Eh4qIovh6NyHhP2NRQsjFQjAkA4V9t4Y6EPsCb6Jkg8YdNVoRg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY3PR01MB6722 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nhi@os.amperecomputing.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: VvzvLIKKzJdolV9CRNf0EQcux7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=NrtqSNlk; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Hi Ard, all, Could you please help explain how the depex section in an image is=20 mapped in terms of memory attribute? As my observation, dispatcher locates[1] the depex section inside the=20 module image and write[2] an evaluated data to the depex if necessary=20 for scheduled boot order. The problem that the depex section is now in=20 RO+X memory due to a part of the module image, so a writing to depex=20 would cause data abort. I'm unsure whether this issue is generic in EDK2=20 or not. I think of two approaches: #1 Relocate the depex section to heap memory for dependency evaluation? #2 EDK2 build tool to support granting write permission for depex section. [1] StandaloneMmPkg/Core/FwVol.c:236 [2] StandaloneMmPkg/Core/Dependency.c:256 Thanks, Nhi -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113373): https://edk2.groups.io/g/devel/message/113373 Mute This Topic: https://groups.io/mt/103594587/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-