linux-stable/arch/arm64
Will Deacon 63d13760ab arm64: mm: Map entry trampoline into trampoline and kernel page tables
Commit 51a0048beb upstream.

The exception entry trampoline needs to be mapped at the same virtual
address in both the trampoline page table (which maps nothing else)
and also the kernel page table, so that we can swizzle TTBR1_EL1 on
exceptions from and return to EL0.

This patch maps the trampoline at a fixed virtual address in the fixmap
area of the kernel virtual address space, which allows the kernel proper
to be randomized with respect to the trampoline when KASLR is enabled.

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:47 +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: mm: Map entry trampoline into trampoline and kernel page tables 2018-02-16 20:22:47 +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: mm: Fix and re-enable ARM64_SW_TTBR0_PAN 2018-02-16 20:22:47 +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