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 20E6E941D5F for ; Wed, 4 Oct 2023 16:31:50 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=pG5bjFarsgJCTUhAZjDMtmod9XEq4XdbjyzjmFfZYZ0=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:From:In-Reply-To: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=1696437109; v=1; b=fb80WXeNpbJxyFYg7IVPeSF/eo7yFBxpTTIh5C+vMA32fjR/eWlWfStgqrnIznGKubgZNKaP 07u9GLiYTFqi4cXKCDYK4otRuIbsSsRZ7WM2Th2jQOmuaixmY5Am+YIRwvZ61QC7UBVFoZeBzcp aB4Q4MAzNBoWk06CTTo+8RVI= X-Received: by 127.0.0.2 with SMTP id dTKKYY7687511xWKj4geCOKU; Wed, 04 Oct 2023 09:31:49 -0700 X-Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mx.groups.io with SMTP id smtpd.web11.23282.1696437109383336794 for ; Wed, 04 Oct 2023 09:31:49 -0700 X-Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-5859b1c92a0so1645386a12.2 for ; Wed, 04 Oct 2023 09:31:49 -0700 (PDT) X-Gm-Message-State: bENOqkeGxAku6YegPTAjMkclx7686176AA= X-Google-Smtp-Source: AGHT+IHQzQvxMCE94/VnqHJLrH26L1f8OScKYmYVAuyYSdUHaRYSG1MlQZRf/h3rYnZ3myeqmSNKlw== X-Received: by 2002:a17:90a:4926:b0:273:6b28:9e30 with SMTP id c35-20020a17090a492600b002736b289e30mr2627922pjh.41.1696437108526; Wed, 04 Oct 2023 09:31:48 -0700 (PDT) X-Received: from [192.168.0.233] ([50.46.253.1]) by smtp.gmail.com with ESMTPSA id 9-20020a17090a018900b00274a43c3414sm1892317pjc.47.2023.10.04.09.31.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Oct 2023 09:31:48 -0700 (PDT) Message-ID: Date: Wed, 4 Oct 2023 09:31:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH v4 20/28] MdeModulePkg: Add Additional Profiles to SetMemoryProtectionsLib To: Gerd Hoffmann Cc: devel@edk2.groups.io, Jian J Wang , Liming Gao References: <20230920005752.2041-1-taylor.d.beebe@gmail.com> <20230920005752.2041-21-taylor.d.beebe@gmail.com> <2390fe7b-d994-4aed-8b45-97bf028b2cb3@gmail.com> From: "Taylor Beebe" In-Reply-To: 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,taylor.d.beebe@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: 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=fb80WXeN; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=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 On 10/4/23 1:46 AM, Gerd Hoffmann wrote: > On Fri, Sep 29, 2023 at 12:52:35PM -0700, Taylor Beebe wrote: >> I can also update ArmVirtPkg to disable execution protection >> for EfiLoaderData by default until fw_cfg parsing >> support is added to ArmVirtPkg. Let me know if you think >> this is necessary. > With MemoryProtectionConfigLib adding fw_cfg parsing support to > ArmVirtPkg should be easy, so maybe just do that? From what I see, the QemuFwCfgLib instance compatible with Arm requires UefiBootServicesTableLib so fw_cfg cannot be parsed early enough to set the memory protection policy on ArmVirt. An Arm compatible PEIM instance of QemuFwCfgLib will need to be created. I'm happy to look into it, but I don't want to hang up this patch series on that addition. Instead, I'll set the protection policy for ArmVirtPkg to th= e equivalent of the new GrubCompat profile in this series. Please let me know if I'm missing an obvious route to PEI fw_cfg parsing on Arm. -Taylor -=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 (#109328): https://edk2.groups.io/g/devel/message/109328 Mute This Topic: https://groups.io/mt/101469960/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-