Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Tested-by: Oliver Steffen <[email protected]> Reviewed-by: Leif Lindholm <[email protected]> Acked-by: Michael D Kinney <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]>
- Loading branch information