Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 99d8c3710a0fc2d15fcc28d8b9a1aedbb190b9b9
      
https://github.com/tianocore/edk2/commit/99d8c3710a0fc2d15fcc28d8b9a1aedbb190b9b9
  Author: Richard Lyu <[email protected]>
  Date:   2026-05-04 (Mon, 04 May 2026)

  Changed paths:
    M ArmPkg/Drivers/CpuDxe/MemoryAttribute.c

  Log Message:
  -----------
  ArmPkg/CpuDxe: Drop GCD system memory check from MemoryAttribute protocol

The UEFI specification does not restrict the MemoryAttribute Protocol
to system memory only. The protocol should permit manipulating
permission attributes on any existing, valid mapping, consistent with
other architectures.

Remove RegionIsSystemMemory() and its use as a precondition in
GetMemoryAttributes(), SetMemoryAttributes() and
ClearMemoryAttributes().

Signed-off-by: Richard Lyu <[email protected]>


  Commit: c00c1216ce7f6e02b00da95747a7f4d4c239c1b1
      
https://github.com/tianocore/edk2/commit/c00c1216ce7f6e02b00da95747a7f4d4c239c1b1
  Author: Richard Lyu <[email protected]>
  Date:   2026-05-04 (Mon, 04 May 2026)

  Changed paths:
    M ArmPkg/Drivers/CpuDxe/MemoryAttribute.c

  Log Message:
  -----------
  ArmPkg/CpuDxe: Refuse to clear XN from device memory mappings

The ARM architecture requires the XN attribute on device memory
mappings. Failure to preserve XN permits speculative instruction
fetches to MMIO regions, leading to unpredictable behavior such as
stuck transactions in the memory controller or the I-cache prefetcher
inadvertently acknowledging device interrupts.

Add a check in ClearMemoryAttributes() that returns EFI_UNSUPPORTED
when the caller requests clearing EFI_MEMORY_XP on a region that
contains device memory. The check traverses the translation table
to determine whether any portion of the given address range is
mapped with the device memory attribute.

Signed-off-by: Richard Lyu <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/7ab771ddcf8d...c00c1216ce7f

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to