public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/5] OvmfPkg: improve SMM comms security with adaptive MemoryTypeInformation
@ 2020-03-10 22:27 Laszlo Ersek
  2020-03-10 22:27 ` [PATCH 1/5] OvmfPkg/QemuFlashFvbServicesRuntimeDxe: drop unused PCDs Laszlo Ersek
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Laszlo Ersek @ 2020-03-10 22:27 UTC (permalink / raw)
  To: edk2-devel-groups-io
  Cc: Ard Biesheuvel, Jordan Justen, Philippe Mathieu-Daudé

Repo:   https://pagure.io/lersek/edk2.git
Branch: mem_type_info
Ref:    https://bugzilla.tianocore.org/show_bug.cgi?id=386

The following "A Tour Beyond BIOS" whitepapers, available at

  https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-white-papers

discuss the WSMT ACPI table:

- "Secure SMM Communication"
- "Memory Protection in UEFI BIOS"
- "Memory Map and Practices in UEFI BIOS"

With time, OVMF should install the WSMT ACPI table. I made an effort to
analyze what was missing for that, here:

  [edk2-devel] WSMT bits
  http://mid.mail-archive.com/3c32815c-3ee9-261a-b473-1be341bdfb0c@redhat.com
  https://edk2.groups.io/g/devel/message/55715

The part (or, well, "one part") that OVMF seems to miss is
Assumption/Recommendation #3 from "Secure SMM Communication", so this
series supplies that.

This series overlaps with TianoCore#386 (although the series is
motivated differently from the BZ). I used TianoCore#386 as the BZ
reference in the patches, for simplicity.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>

Thanks
Laszlo

Laszlo Ersek (5):
  OvmfPkg/QemuFlashFvbServicesRuntimeDxe: drop unused PCDs
  OvmfPkg/QemuFlashFvbServices: factor out
    SetPcdFlashNvStorageBaseAddresses
  OvmfPkg: set fixed FlashNvStorage base addresses with -D SMM_REQUIRE
  OvmfPkg: include FaultTolerantWritePei and VariablePei with -D
    SMM_REQUIRE
  OvmfPkg: improve SMM comms security with adaptive
    MemoryTypeInformation

 OvmfPkg/OvmfPkg.fdf.inc                                          |   6 +
 OvmfPkg/OvmfPkgIa32.dsc                                          |   6 +
 OvmfPkg/OvmfPkgIa32.fdf                                          |   2 +
 OvmfPkg/OvmfPkgIa32X64.dsc                                       |   6 +
 OvmfPkg/OvmfPkgIa32X64.fdf                                       |   2 +
 OvmfPkg/OvmfPkgX64.dsc                                           |   6 +
 OvmfPkg/OvmfPkgX64.fdf                                           |   2 +
 OvmfPkg/PlatformPei/MemTypeInfo.c                                | 147 ++++++++++++++++++++
 OvmfPkg/PlatformPei/Platform.c                                   |  23 +--
 OvmfPkg/PlatformPei/Platform.h                                   |   5 +
 OvmfPkg/PlatformPei/PlatformPei.inf                              |   2 +
 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf |   2 -
 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf        |   7 -
 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c          |  19 +--
 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.h          |   5 +
 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceDxe.c       |  27 ++++
 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceSmm.c       |  10 ++
 17 files changed, 228 insertions(+), 49 deletions(-)
 create mode 100644 OvmfPkg/PlatformPei/MemTypeInfo.c

-- 
2.19.1.3.g30247aa5d201


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2020-03-12 22:20 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-10 22:27 [PATCH 0/5] OvmfPkg: improve SMM comms security with adaptive MemoryTypeInformation Laszlo Ersek
2020-03-10 22:27 ` [PATCH 1/5] OvmfPkg/QemuFlashFvbServicesRuntimeDxe: drop unused PCDs Laszlo Ersek
2020-03-10 22:27 ` [PATCH 2/5] OvmfPkg/QemuFlashFvbServices: factor out SetPcdFlashNvStorageBaseAddresses Laszlo Ersek
2020-03-10 22:27 ` [PATCH 3/5] OvmfPkg: set fixed FlashNvStorage base addresses with -D SMM_REQUIRE Laszlo Ersek
2020-03-11 15:44   ` [edk2-devel] " Leif Lindholm
2020-03-11 16:14     ` Laszlo Ersek
2020-03-11 16:20       ` Leif Lindholm
2020-03-11 16:41         ` Laszlo Ersek
2020-03-12 14:20           ` Leif Lindholm
2020-03-12 22:19             ` Laszlo Ersek
2020-03-10 22:27 ` [PATCH 4/5] OvmfPkg: include FaultTolerantWritePei and VariablePei " Laszlo Ersek
2020-03-10 22:27 ` [PATCH 5/5] OvmfPkg: improve SMM comms security with adaptive MemoryTypeInformation Laszlo Ersek
2020-03-11 16:00   ` [edk2-devel] " Leif Lindholm
2020-03-11 16:22     ` Laszlo Ersek
2020-03-11 19:36       ` Leif Lindholm
2020-03-12  0:30         ` Laszlo Ersek
2020-03-12 10:40           ` Leif Lindholm
2020-03-12 21:19             ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox