diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-02-08 18:19:36 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-03-16 21:14:49 +0000 |
commit | ae2c904c3de9d42b70805e42c687de874a5c6d25 (patch) | |
tree | ec63761fc9f7bc004da157de6fd831da5abcb839 /SecurityPkg/RandomNumberGenerator/RngDxe/ArmTrng.c | |
parent | f07a9df9af60ad0afa9107cb582f4103cdcda1bc (diff) | |
download | edk2-ae2c904c3de9d42b70805e42c687de874a5c6d25.tar.gz edk2-ae2c904c3de9d42b70805e42c687de874a5c6d25.tar.bz2 edk2-ae2c904c3de9d42b70805e42c687de874a5c6d25.zip |
ArmPkg/ArmMmuLib: Avoid splitting block entries if possible
Currently, the ARM MMU page table logic will break down any block entry
that overlaps with the region being mapped, even if the block entry in
question is using the same attributes as the new region.
This means that creating a non-executable mapping inside a region that
is already mapped non-executable at a coarser granularity may trigger a
call to AllocatePages (), which may recurse back into the page table
code to update the attributes on the newly allocated page tables.
Let's avoid this, by preserving the block entry if it already covers the
region being mapped with the correct attributes.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Diffstat (limited to 'SecurityPkg/RandomNumberGenerator/RngDxe/ArmTrng.c')
0 files changed, 0 insertions, 0 deletions