acrn-kernel/arch/arm64/kernel
Rob Herring 6e3ae2927b arm64: errata: Add Cortex-A520 speculative unprivileged load workaround
commit 471470bc70 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-10 22:00:39 +02:00
..
pi
probes
vdso
vdso32
.gitignore
Makefile
acpi.c
acpi_numa.c
acpi_parking_protocol.c
alternative.c
armv8_deprecated.c
asm-offsets.c
cacheinfo.c
compat_alignment.c arm64: compat: Work around uninitialized variable warning 2023-04-13 16:55:24 +02:00
cpu-reset.S
cpu_errata.c arm64: errata: Add Cortex-A520 speculative unprivileged load workaround 2023-10-10 22:00:39 +02:00
cpu_ops.c
cpufeature.c arm64: cpufeature: Fix CLRBHB and BC detection 2023-10-10 22:00:37 +02:00
cpuidle.c
cpuinfo.c
crash_core.c
crash_dump.c
debug-monitors.c arm64: kgdb: Set PSTATE.SS to 1 to re-enable single-step 2023-05-11 23:03:16 +09:00
efi-entry.S
efi-header.S arm64: efi: Set NX compat flag in PE/COFF header 2023-04-06 12:10:37 +02:00
efi-rt-wrapper.S arm64: efi: Avoid workqueue to check whether EFI runtime is live 2023-02-01 08:34:34 +01:00
efi.c arm64: efi: Make efi_rt_lock a raw_spinlock 2023-03-11 13:55:43 +01:00
elfcore.c arm64: mte: Fix/clarify the PG_mte_tagged semantics 2023-03-11 13:55:44 +01:00
entry-common.c
entry-fpsimd.S
entry-ftrace.S
entry.S arm64: errata: Add Cortex-A520 speculative unprivileged load workaround 2023-10-10 22:00:39 +02:00
fpsimd.c arm64/fpsimd: Only provide the length to cpufeature for xCR registers 2023-09-13 09:42:29 +02:00
ftrace.c
head.S arm64: Always load shadow stack pointer directly from the task struct 2023-05-11 23:02:59 +09:00
hibernate-asm.S
hibernate.c arm64: mte: Fix/clarify the PG_mte_tagged semantics 2023-03-11 13:55:44 +01:00
hw_breakpoint.c hw_breakpoint: fix single-stepping when using bpf_overflow_handler 2023-09-23 11:11:00 +02:00
hyp-stub.S
idle.c
idreg-override.c
image-vars.h
image.h
io.c
irq.c
jump_label.c
kaslr.c
kexec_image.c
kgdb.c arm64: kgdb: Set PSTATE.SS to 1 to re-enable single-step 2023-05-11 23:03:16 +09:00
kuser32.S
machine_kexec.c
machine_kexec_file.c
module-plts.c arm64: module: Use module_init_layout_section() to spot init sections 2023-09-02 09:16:19 +02:00
module.c
mte.c arm64: mte: Do not set PG_mte_tagged if tags were not initialized 2023-05-24 17:32:52 +01:00
paravirt.c
patching.c
pci.c
perf_callchain.c
perf_event.c
perf_regs.c
pointer_auth.c
process.c
proton-pack.c
psci.c
ptrace.c arm64/ptrace: Clean up error handling path in sve_set_common() 2023-09-13 09:42:28 +02:00
reloc_test_core.c
reloc_test_syms.S
relocate_kernel.S
return_address.c
sdei.c arm64: sdei: abort running SDEI handlers during crash 2023-09-13 09:43:03 +02:00
setup.c
signal.c arm64/ptrace: Ensure that SME is set up for target when writing SSVE state 2023-08-23 17:52:41 +02:00
signal32.c
sigreturn32.S
sleep.S
smccc-call.S
smp.c arm64: sdei: abort running SDEI handlers during crash 2023-09-13 09:43:03 +02:00
smp_spin_table.c
stacktrace.c arm64: efi: Account for the EFI runtime stack in stack unwinder 2023-02-01 08:34:35 +01:00
suspend.c
sys.c
sys32.c
sys_compat.c
syscall.c
time.c
topology.c
trace-events-emulation.h
traps.c
vdso-wrap.S
vdso.c arm64: vdso: Pass (void *) to virt_to_page() 2023-06-09 10:34:14 +02:00
vdso32-wrap.S
vmlinux.lds.S