audk/ArmPkg
Ard Biesheuvel 5ce29ae84d ArmPkg/ArmMmuLib AARCH64: Add missing ISB after page table update
The helper that updates live page table entries writes a zero entry,
invalidates the covered address range from the TLBs, and finally writes
the actual entry. This ensures that no TLB conflicts can occur.

Writing the final entry needs to complete before any translations can be
performed, as otherwise, the zero entry, which describes an invalid
translation, may be observed by the page table walker, resulting in a
translation fault. For this reason, the final write is followed by a DSB
barrier instruction.

However, this barrier will not stall the pipeline, and instruction
fetches may still hit this invalid translation, as has been observed and
reported by Oliver. To ensure that the new translation is fully active
before returning from this helper, we have to insert an ISB barrier as
well.

Reported-by: Oliver Steffen <osteffen@redhat.com>
Tested-by: Oliver Steffen <osteffen@redhat.com>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
2023-05-23 00:43:21 +00:00
..
Application/ArmCpuInfo ArmPkg: add ArmCpuInfo EFI application 2023-04-21 18:50:05 +00:00
Drivers ArmPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
Filesystem/SemihostFs ArmPkg/SemihostFs: replace SetMem with ZeroMem 2023-03-09 09:45:39 +00:00
Include ArmPkg: older assemblers may lack ID_AA64ISAR2_EL1 2023-04-20 20:11:46 +00:00
Library ArmPkg/ArmMmuLib AARCH64: Add missing ISB after page table update 2023-05-23 00:43:21 +00:00
Universal/Smbios ArmPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
ArmPkg.ci.yaml ArmPkg, ArmVirtPkg: put SpellCheck in AuditOnly mode 2022-09-10 08:23:27 +00:00
ArmPkg.dec ArmPkg/PlatformBootManagerLib: Add path to boot UEFI Shell over UiApp 2023-05-04 14:26:58 +00:00
ArmPkg.dsc ArmPkg: add ArmCpuInfo EFI application 2023-04-21 18:50:05 +00:00