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 B46009413EA for ; Wed, 27 Sep 2023 08:19:12 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=7VQXAXXajjs16MSdgD1Ys+23wIpj+KdrUF6K9u3FPN4=; c=relaxed/simple; d=groups.io; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Disposition; s=20140610; t=1695802751; v=1; b=ciBuIbz3+iMpXnd+VPj4TbEFnDDDrYs+2zKD0j8FTDAXT7PBptJ1AA6N/gN3rMyCDb6ILw0z xYI/b9pYpMHxRlTbCXDy+tF5cmvK45LIxU7Dgjp+Mij38VI5MC4QhtP8HRCNFB0RdJBC2Vu7hcf rwhmEESutfpwehLdxFEFHk3E= X-Received: by 127.0.0.2 with SMTP id LsJtYY7687511xN9eDJE3z3O; Wed, 27 Sep 2023 01:19:11 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.13050.1695802750319332846 for ; Wed, 27 Sep 2023 01:19:10 -0700 X-Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-130-IZbWuchNO22dbzSgNrrq7g-1; Wed, 27 Sep 2023 04:19:06 -0400 X-MC-Unique: IZbWuchNO22dbzSgNrrq7g-1 X-Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BAC1F3C0C4A1; Wed, 27 Sep 2023 08:19:05 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.193.95]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5C2C7176C3; Wed, 27 Sep 2023 08:19:04 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 850E01800DDE; Wed, 27 Sep 2023 10:19:03 +0200 (CEST) Date: Wed, 27 Sep 2023 10:19:03 +0200 From: "Gerd Hoffmann" To: devel@edk2.groups.io, taylor.d.beebe@gmail.com Cc: Jian J Wang , Liming Gao Subject: Re: [edk2-devel] [PATCH v4 20/28] MdeModulePkg: Add Additional Profiles to SetMemoryProtectionsLib Message-ID: References: <20230920005752.2041-1-taylor.d.beebe@gmail.com> <20230920005752.2041-21-taylor.d.beebe@gmail.com> MIME-Version: 1.0 In-Reply-To: <20230920005752.2041-21-taylor.d.beebe@gmail.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: CrIzfuI1OfnzHwyj8uHLlYA7x7686176AA= Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=ciBuIbz3; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.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 Tue, Sep 19, 2023 at 05:57:43PM -0700, Taylor Beebe wrote: > Now that the EDK2 tree uses GetMemoryProtectionsLib to query > the platform memory protection settings, we can add additional > profiles to SetMemoryProtectionsLib to give plaforms more options > for setting memory protections. What is the recommended way to add more profiles? Specifically I have a bunch of linux test cases failing when testing this series, which is most likely causes by older + broken grub versions (which are known to use EfiLoaderData for code). So I think I need a "GrubCompat" profile which has ExecutionProtection.EnabledForType[EfiLoaderData] = FALSE but is otherwise identical to the production profile. Should that go into SetMemoryProtectionsLib? Or MemoryProtectionConfigLib? take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109113): https://edk2.groups.io/g/devel/message/109113 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] -=-=-=-=-=-=-=-=-=-=-=-