From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 14EBF941DD1 for ; Wed, 17 Apr 2024 22:12:23 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Lyi5Af55lnWBj9y5SQRm+Dq+ADkFLDMJl8t66g27JEk=; c=relaxed/simple; d=groups.io; h=DKIM-Filter:Message-ID:Date:MIME-Version:User-Agent:Subject:From:To:Cc:Reply-To:References:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1713391942; v=1; b=tj2XkjGLlg+ErtkRN3yyiYFTElJTwxiZMhcbxFhATb/cuYHsnunyEgzfGX7dohjWNK5oOE4V 4kxnpTVSDDinP8/M9+DbGATbmGvBEst70wDO4yv56CRD+hhsBQBJXeik5yKjuD432VA7jOco/Q5 NlvdQLDCQN2NHXo8YQm8EOUOoqJY/A6vvxpmprnkqfDVUEmbDhLq0666Z7KKnvBpbova9RzVs3Q UthwLfgNKuQmmiYpvGzxIHIwMJOycYPGLoBAIfUs76z+HgJ0AfSQ5ubcX67DD+xA3cH69anN9HO 76WBLrPHKikYKgoliLW+YewSfGLqtC2/CitCs0Z9tqscQ== X-Received: by 127.0.0.2 with SMTP id iZJKYY7687511x6oWa754rvm; Wed, 17 Apr 2024 15:12:22 -0700 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web10.66.1713391941977492137 for ; Wed, 17 Apr 2024 15:12:22 -0700 X-Received: from [10.137.194.171] (unknown [131.107.159.43]) by linux.microsoft.com (Postfix) with ESMTPSA id 6082420FD4B8; Wed, 17 Apr 2024 15:12:21 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6082420FD4B8 Message-ID: <43b45380-34ba-40af-979c-44bd3eb0df23@linux.microsoft.com> Date: Wed, 17 Apr 2024 15:12:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH v1] MdeModulePkg: Fixup MAT Attributes After Splitting EFI Memory Map From: "Oliver Smith-Denny" To: Taylor Beebe , devel@edk2.groups.io, ardb@kernel.org Cc: Liming Gao Reply-To: devel@edk2.groups.io,osde@linux.microsoft.com References: <20240417022836.1593-1-taylor.d.beebe@gmail.com> <2644bcd1-29c7-4cc0-9600-ae2a2eca9927@gmail.com> <17C72F39F4EB8845.20027@groups.io> In-Reply-To: <17C72F39F4EB8845.20027@groups.io> 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 Resent-Date: Wed, 17 Apr 2024 15:12:22 -0700 Resent-From: osde@linux.microsoft.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 905kLV3kxMogpapT0icWCJS0x7686176AA= Content-Language: en-CA 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=20240206 header.b=tj2XkjGL; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linux.microsoft.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io On 4/17/2024 2:41 PM, Oliver Smith-Denny wrote: > Now, for the case of ARM64, where you have 64k runtime > granularity and often will end up with the case of many > extra pages in a code section, those pages will be marked > as RO and executable, even though they contain garbage. I think > it would be worthwhile to mark the excess garbage pages, if they > exist for a given section, as RP. Nothing should be using them > in any fashion, they are padding. I thought this through some more. We can't do this because of the UEFI spec provision that says no 64k region can have different attributes set. So, we leave open the possibility of executing garbage :) Oliver -=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 (#117936): https://edk2.groups.io/g/devel/message/117936 Mute This Topic: https://groups.io/mt/105570114/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-