diff options
author | Will Deacon <will.deacon@arm.com> | 2017-08-10 15:58:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-16 22:22:47 +0300 |
commit | 00ff7de671f87cf7b330b563c16ee6fb8f5e3cab (patch) | |
tree | 1ec5f0aa62f70359fc175544b43971f6ae4ea6a7 /arch/arm64/Kconfig | |
parent | 95ce0d51f9a8ee5417a3d1d8699d6f654dd90a62 (diff) | |
download | linux-00ff7de671f87cf7b330b563c16ee6fb8f5e3cab.tar.xz |
arm64: mm: Fix and re-enable ARM64_SW_TTBR0_PAN
Commit 27a921e75711 upstream.
With the ASID now installed in TTBR1, we can re-enable ARM64_SW_TTBR0_PAN
by ensuring that we switch to a reserved ASID of zero when disabling
user access and restore the active user ASID on the uaccess enable path.
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>
Diffstat (limited to 'arch/arm64/Kconfig')
-rw-r--r-- | arch/arm64/Kconfig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 63ff04fe03e1..8f73eaccf50a 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -882,7 +882,6 @@ endif config ARM64_SW_TTBR0_PAN bool "Emulate Privileged Access Never using TTBR0_EL1 switching" - depends on BROKEN # Temporary while switch_mm is reworked help Enabling this option prevents the kernel from accessing user-space memory directly by pointing TTBR0_EL1 to a reserved |