audk/ArmPkg
Ard Biesheuvel d1ec2b2f78 ArmPkg/AArch64Mmu: don't let table entries inherit XN permission bits
When we split a block entry into a table entry, the UXN/PXN/XN permission
attributes are inherited both by the new table entry and by the new block
entries at the next level down. Unlike the NS bit, which only affects the
next level of lookup, the XN table bits supersede the permissions of the
final translation, and setting the permissions at multiple levels is not
only redundant, it also prevents us from lifting XN restrictions on a
subregion of the original block entry by simply clearing the appropriate
bits at the lowest level.

So drop the code that sets the UXN/PXN/XN bits on the table entries.

Reported-by: "Oliyil Kunnil, Vishal" <vishalo@qti.qualcomm.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2016-05-10 14:44:40 +02:00
..
Application/LinuxLoader ArmPkg: LinuxLoader: fix typo in help string 2016-01-20 14:55:58 +00:00
Drivers ArmPkg: implement CpuIo2 protocol driver specific for PCI 2016-04-29 18:04:25 +02:00
Filesystem/SemihostFs ArmPkg/SemihostFs: Implement SetInfo() and handle seeking past the end of a file 2014-10-27 10:42:51 +00:00
Include ArmPkg/AArch64Mmu: disable MMU during page table manipulations 2016-04-14 18:01:52 +02:00
Library ArmPkg/AArch64Mmu: don't let table entries inherit XN permission bits 2016-05-10 14:44:40 +02:00
ArmPkg.dec ArmPlatformPkg: move PCI related PCD definitions to ArmPkg 2016-04-29 18:04:21 +02:00
ArmPkg.dsc ArmPkg: ARM/AArch64 implementation of CpuExceptionHandlerLib 2016-03-16 12:19:58 +01:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt ArmPkg: Rectify file modes 2016-01-30 12:25:59 +00:00