linux-stable/arch/arm64
Will Deacon 15a511c0cb arm64: erratum: Work around Falkor erratum #E1003 in trampoline code
Commit d1777e686a upstream.

We rely on an atomic swizzling of TTBR1 when transitioning from the entry
trampoline to the kernel proper on an exception. We can't rely on this
atomicity in the face of Falkor erratum #E1003, so on affected cores we
can issue a TLB invalidation to invalidate the walk cache prior to
jumping into the kernel. There is still the possibility of a TLB conflict
here due to conflicting walk cache entries prior to the invalidation, but
this doesn't appear to be the case on these CPUs in practice.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Laura Abbott <labbott@redhat.com>
Tested-by: Shanker Donthineni <shankerd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-16 20:22:48 +01:00
..
boot .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore 2018-02-13 10:19:46 +01:00
configs ARM/arm64: SoC platform updates for v4.14 2017-09-10 20:35:46 -07:00
crypto License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
include arm64: mm: Map entry trampoline into trampoline and kernel page tables 2018-02-16 20:22:47 +01:00
kernel arm64: erratum: Work around Falkor erratum #E1003 in trampoline code 2018-02-16 20:22:48 +01:00
kvm arm64: Add software workaround for Falkor erratum 1041 2018-02-16 20:22:44 +01:00
lib arm64: mm: Fix and re-enable ARM64_SW_TTBR0_PAN 2018-02-16 20:22:47 +01:00
mm arm64: mm: Map entry trampoline into trampoline and kernel page tables 2018-02-16 20:22:47 +01:00
net bpf, arm64: fix stack_depth tracking in combination with tail calls 2018-01-31 14:03:50 +01:00
xen arm64: mm: Fix and re-enable ARM64_SW_TTBR0_PAN 2018-02-16 20:22:47 +01:00
Kconfig arm64: erratum: Work around Falkor erratum #E1003 in trampoline code 2018-02-16 20:22:48 +01:00
Kconfig.debug arm64: relocation testing module 2017-04-04 17:03:32 +01:00
Kconfig.platforms ARM: arm64: Devicetree updates for v4.14 2017-09-10 20:54:48 -07:00
Makefile arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27 2017-12-20 10:10:29 +01:00