arm64: Kconfig: Add CONFIG_UNMAP_KERNEL_AT_EL0
authorWill Deacon <will.deacon@arm.com>
Tue, 14 Nov 2017 14:41:01 +0000 (14:41 +0000)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:46:10 +0000 (18:46 +0800)
commit38d83d424d2d15fc41be3d1dbdc0c49d48cee4db
treedef39f966aa70e37a4833fc6e99a71dfe1504394
parent51de580e8e70ad1bf23a68384a6a3be5bda719f5
arm64: Kconfig: Add CONFIG_UNMAP_KERNEL_AT_EL0

commit 084eb77cd3a8 upstream.

Add a Kconfig entry to control use of the entry trampoline, which allows
us to unmap the kernel whilst running in userspace and improve the
robustness of KASLR.

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: Alex Shi <alex.shi@linaro.org>
arch/arm64/Kconfig