From nobody Mon Sep 16 19:12:23 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+101142+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+101142+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1678727956; cv=none; d=zohomail.com; s=zohoarc; b=WBKBB4JpFjfZ4Sv5Fr1h/zj5yTFmCZls91/vs0Z0L7q6VZgeIA6i7LSwIwXfDPNU2/7rfye8VARepjJJxQ9BZDVXEifQ9MA9N8ZyrOB0XSWQsQ+gs0YsXDgJjs9dn3s+1do9XAETjD79pvdVFwxRk3FCo0c32lqYwsvvcVrh23M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678727956; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=lR8Ji3uno2dX9S2ae9QzZahmhz7MaNrmDbhkwmVAJW8=; b=PEwHcKMYNenswptNbJU3okT//KsZYUk7P2n/spF4cMP7HkkOVQijQonCjB6iOGo46ynm1DAm9Pt2QFfk5iKgITQNUYiQsARCya0U/f1aDjGyCK08OcxZN3t4nZtlX0fLYFzZPO1508IECcfD/c5xZOCai90u+5PFIa7on+eUkHM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+101142+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1678727956097612.2391162573834; Mon, 13 Mar 2023 10:19:16 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id zty0YY1788612xKVKiwEvrQ2; Mon, 13 Mar 2023 10:19:15 -0700 X-Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web11.26522.1678727954654687008 for ; Mon, 13 Mar 2023 10:19:14 -0700 X-Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 30DA861365; Mon, 13 Mar 2023 17:19:14 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C56E0C433A1; Mon, 13 Mar 2023 17:19:11 +0000 (UTC) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Michael Kinney , Liming Gao , Jiewen Yao , Michael Kubacki , Sean Brogan , Rebecca Cran , Leif Lindholm , Sami Mujawar , Taylor Beebe Subject: [edk2-devel] [PATCH v5 38/38] MdeModulePkg DEC: Remove inaccurate comment Date: Mon, 13 Mar 2023 18:17:14 +0100 Message-Id: <20230313171714.3866151-39-ardb@kernel.org> In-Reply-To: <20230313171714.3866151-1-ardb@kernel.org> References: <20230313171714.3866151-1-ardb@kernel.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,ardb@kernel.org X-Gm-Message-State: FaBTYYrYKBxHbSDsVz2rOA0vx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1678727955; bh=Yeb4hGJGIstac7H1Z7I/FaYG5nTDxXp49U3zPMSmx0Y=; h=Cc:Date:From:Reply-To:Subject:To; b=LNp1bOyJ72d1YwxXHlfIAtHnOo43UBp8+u5HcAvGlRxIG8i8DqeTfoFKgoRFhedLBwf yUO6rjrd5Z5OYLbKVN6N4ypl6YmvIZBnOas4HdZbkyuqKy30F2e1C9qcixaRcPTS5t88g 9XHd0Z3slVFlxDJfiEb0obhNzP+/DVj4Bms= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1678727956508100001 Content-Type: text/plain; charset="utf-8" The comment regarding the configured image protection policy states that data regions of a loaded image may be mapped NX based on the configured NX memory policy for boot/runtime services or loader data regions. This is inaccurate: all image sections will be covered by the same code region in the memory map, so the NX protection policy for data regions has no bearing on this whatsoever. Signed-off-by: Ard Biesheuvel --- MdeModulePkg/MdeModulePkg.dec | 4 ---- 1 file changed, 4 deletions(-) diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 720dec58dfc4..b42af1faee25 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -1356,10 +1356,6 @@ [PcdsFixedAtBuild, PcdsPatchableInModule] # BIT0 - Image from unknown device.
# BIT1 - Image from firmware volume.
#
- # Note: If a bit is cleared, the data section could be still non-execut= able if - # PcdDxeNxMemoryProtectionPolicy is enabled for EfiLoaderData, EfiBootS= ervicesData - # and/or EfiRuntimeServicesData.
- #
# @Prompt Set image protection policy. # @ValidRange 0x80000002 | 0x00000000 - 0x0000001F gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x00000002|UINT3= 2|0x00001047 --=20 2.39.2 -=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 (#101142): https://edk2.groups.io/g/devel/message/101142 Mute This Topic: https://groups.io/mt/97586061/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-