OpenCloudOS-Kernel/Documentation/arch/arm64
Rob Herring 471470bc70 arm64: errata: Add Cortex-A520 speculative unprivileged load workaround
Implement the workaround for ARM Cortex-A520 erratum 2966298. On an
affected Cortex-A520 core, a speculatively executed unprivileged load
might leak data from a privileged load via a cache side channel. The
issue only exists for loads within a translation regime with the same
translation (e.g. same ASID and VMID). Therefore, the issue only affects
the return to EL0.

The workaround is to execute a TLBI before returning to EL0 after all
loads of privileged data. A non-shareable TLBI to any address is
sufficient.

The workaround isn't necessary if page table isolation (KPTI) is
enabled, but for simplicity it will be. Page table isolation should
normally be disabled for Cortex-A520 as it supports the CSV3 feature
and the E0PD feature (used when KASLR is enabled).

Cc: stable@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230921194156.1050055-2-robh@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
2023-09-29 16:31:33 +01:00
..
acpi_object_usage.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
amu.rst
arm-acpi.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
asymmetric-32bit.rst
booting.rst
cpu-feature-registers.rst arm64: Document missing userspace visible fields in ID_AA64ISAR2_EL1 2023-09-18 11:59:02 +01:00
elf_hwcaps.rst arm64/hbc: Document HWCAP2_HBC 2023-09-18 10:47:53 +01:00
features.rst
hugetlbpage.rst
index.rst
kasan-offsets.sh
kdump.rst
legacy_instructions.rst
memory-tagging-extension.rst
memory.rst
perf.rst
pointer-authentication.rst
ptdump.rst
silicon-errata.rst arm64: errata: Add Cortex-A520 speculative unprivileged load workaround 2023-09-29 16:31:33 +01:00
sme.rst Documentation: arm64: Correct SME ZA macros name 2023-07-27 17:01:33 +01:00
sve.rst
tagged-address-abi.rst
tagged-pointers.rst