• Will Deacon's avatar
    arm64: kaslr: Set TCR_EL1.NFD1 when CONFIG_RANDOMIZE_BASE=y · e03e61c3
    Will Deacon authored
    TCR_EL1.NFD1 was allocated by SVE and ensures that fault-surpressing SVE
    memory accesses (e.g. speculative accesses from a first-fault gather load)
    which translate via TTBR1_EL1 result in a translation fault if they
    miss in the TLB when executed from EL0. This mitigates some timing attacks
    against KASLR, where the kernel address space could otherwise be probed
    efficiently using the FFR in conjunction with suppressed faults on SVE
    loads.
    
    Cc: Dave Martin <Dave.Martin@arm.com>
    Acked-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    e03e61c3
proc.S 10.5 KB