• W
    iommu/io-pgtable-arm: avoid speculative walks through TTBR1 · 63979b8d
    Will Deacon 提交于
    Although we set TCR.T1SZ to 0, the input address range covered by TTBR1
    is actually calculated using T0SZ in this case on the ARM SMMU. This
    could theoretically lead to speculative table walks through physical
    address zero, leading to all sorts of fun and games if we have MMIO
    regions down there.
    
    This patch avoids the issue by setting EPD1 to disable walks through
    the unused TTBR1 register.
    Signed-off-by: NWill Deacon <will.deacon@arm.com>
    63979b8d
io-pgtable-arm.c 25.7 KB