audk/ArmPkg/Library/ArmLib
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
..
AArch64 ArmPkg/AArch64Mmu: don't let table entries inherit XN permission bits 2016-05-10 14:44:40 +02:00
ArmV7 ArmPkg: Configure TTBCR register 2016-03-03 18:23:54 +00:00
Common ArmPkg: Configure TTBCR register 2016-03-03 18:23:54 +00:00
Null ArmPkg/ArmLib: remove CCSIDR based cache info routines 2015-11-09 13:26:32 +00:00