Re: [edk2] [PATCH v2 3/4] ArmPkg/CpuDxe ARM: honour RO/XP attributes in SetMemoryAttributes()

2017-03-06 Thread Leif Lindholm
On Mon, Mar 06, 2017 at 04:11:50PM +0100, Ard Biesheuvel wrote: > On 6 March 2017 at 15:48, Leif Lindholm wrote: > > On Thu, Mar 02, 2017 at 10:36:15AM +, Ard Biesheuvel wrote: > >> Enable the use of strict memory permissions on ARM by processing the > >> EFI_MEMORY_RO and EFI_MEMORY_XP rather

Re: [edk2] [PATCH v2 3/4] ArmPkg/CpuDxe ARM: honour RO/XP attributes in SetMemoryAttributes()

2017-03-06 Thread Ard Biesheuvel
On 6 March 2017 at 15:48, Leif Lindholm wrote: > On Thu, Mar 02, 2017 at 10:36:15AM +, Ard Biesheuvel wrote: >> Enable the use of strict memory permissions on ARM by processing the >> EFI_MEMORY_RO and EFI_MEMORY_XP rather than ignoring them. As before, >> calls to CpuArchProtocol::SetMemoryAt

Re: [edk2] [PATCH v2 3/4] ArmPkg/CpuDxe ARM: honour RO/XP attributes in SetMemoryAttributes()

2017-03-06 Thread Leif Lindholm
On Thu, Mar 02, 2017 at 10:36:15AM +, Ard Biesheuvel wrote: > Enable the use of strict memory permissions on ARM by processing the > EFI_MEMORY_RO and EFI_MEMORY_XP rather than ignoring them. As before, > calls to CpuArchProtocol::SetMemoryAttributes that only set RO/XP > bits will preserve the

[edk2] [PATCH v2 3/4] ArmPkg/CpuDxe ARM: honour RO/XP attributes in SetMemoryAttributes()

2017-03-02 Thread Ard Biesheuvel
Enable the use of strict memory permissions on ARM by processing the EFI_MEMORY_RO and EFI_MEMORY_XP rather than ignoring them. As before, calls to CpuArchProtocol::SetMemoryAttributes that only set RO/XP bits will preserve the cacheability attributes. Permissions attributes are not preserved when