From: "Laszlo Ersek" <lersek@redhat.com>
To: devel@edk2.groups.io, jacek.kukiello@intel.com
Cc: Michael D Kinney <michael.d.kinney@intel.com>,
Jian J Wang <jian.j.wang@intel.com>,
Hao A Wu <hao.a.wu@intel.com>, Dandan Bi <dandan.bi@intel.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
Zhiguang Liu <zhiguang.liu@intel.com>,
Oleksiy Yakovlev <oleksiyy@ami.com>,
Ard Biesheuvel <ard.biesheuvel@arm.com>
Subject: Re: [edk2-devel] [PATCH v2 0/2] UEFI memmap workaround for hiding page-access caps from OSes hides SP and CRYPTO caps too
Date: Thu, 24 Sep 2020 15:04:04 +0200 [thread overview]
Message-ID: <f8701310-ef01-b6a5-c6e2-dd4810c2e08d@redhat.com> (raw)
In-Reply-To: <20200924102132.18248-1-jacek.kukiello@intel.com>
On 09/24/20 12:21, Malgorzata Kukiello wrote:
> REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2982
>
> The workaround in the UEFI memmap construction, near the end of the
> function CoreGetMemoryMap() [MdeModulePkg/Core/Dxe/Mem/Page.c] should
> not clear the SP and CRYPTO bits, because OSes do (apparently) correctly
> interpret SP and CRYPTO as capabilities, and not as currently set
> attributes (upon which the OSes should set their page tables). For this
> reason, the SP and CRYPTO bits should be separated from the bitmask that
> we use for hiding the page-access attributes, in the workaround
>
> Signed-off-by: Malgorzata Kukiello <jacek.kukiello@intel.com>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Jian J Wang <jian.j.wang@intel.com>
> Cc: Hao A Wu <hao.a.wu@intel.com>
> Cc: Dandan Bi <dandan.bi@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> Cc: Oleksiy Yakovlev <oleksiyy@ami.com>
> Cc: Ard Biesheuvel (ARM address) <ard.biesheuvel@arm.com>
>
> MdeModulePkg/Core/Dxe/Mem/Page.c | 12 ++++++------
> MdePkg/Include/Uefi/UefiSpec.h | 3 ++-
> 2 files changed, 8 insertions(+), 7 deletions(-)
series
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
next prev parent reply other threads:[~2020-09-24 13:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-24 10:21 [PATCH v2 0/2] UEFI memmap workaround for hiding page-access caps from OSes hides SP and CRYPTO caps too jacek.kukiello
2020-09-24 10:21 ` [PATCH v2 2/2] MdeModulePkg/Core/Dxe: expose SP and CRYPTO capabilities in UEFI memmap Malgorzata Kukiello
2020-09-24 10:21 ` [PATCH v2 1/2] MdePkg/UefiSpec: separate page access bitmask from SP and CRYPTO caps Malgorzata Kukiello
2020-09-24 13:04 ` Laszlo Ersek [this message]
2020-09-25 8:54 ` 回复: [edk2-devel] [PATCH v2 0/2] UEFI memmap workaround for hiding page-access caps from OSes hides SP and CRYPTO caps too gaoliming
2020-09-28 15:39 ` Malgorzata Kukiello
2020-09-29 1:13 ` 回复: " gaoliming
2020-10-02 12:52 ` Malgorzata Kukiello
[not found] ` <163A2DF5FC986A3A.27356@groups.io>
2020-10-09 6:01 ` Malgorzata Kukiello
2020-10-09 9:30 ` 回复: " gaoliming
[not found] ` <163C48FE4529CC02.8231@groups.io>
2020-10-10 3:35 ` gaoliming
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f8701310-ef01-b6a5-c6e2-dd4810c2e08d@redhat.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox