diff options
author | Naitik Bharadiya <bharad@codeaurora.org> | 2019-04-24 15:17:01 +0530 |
---|---|---|
committer | Naitik Bharadiya <bharad@codeaurora.org> | 2019-04-24 21:35:19 +0530 |
commit | 339eab8aede00ec7cb2b32fb2071b459ba561299 (patch) | |
tree | 7ec6ac7b7afc4a1a8cd0c428cd82be749b8e8134 /arch/arm64 | |
parent | e0f69caa36e88038fc27962308b0bb865759736d (diff) |
defconfig: msm8996: Enable PAN emulation
Privilege Access Never (PAN) enforces the usage of
copy_to_user/copy_from_user and friends when kernel accesses data from
user space. If user space memory is accessed outside of these functions
a kernel panic occurs.
Change-Id: Ic2c6b504f5e0ced025bb5ba7848ec6c267d78f21
Signed-off-by: Naitik Bharadiya <bharad@codeaurora.org>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/configs/msm-perf_defconfig | 1 | ||||
-rw-r--r-- | arch/arm64/configs/msm_defconfig | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/configs/msm-perf_defconfig b/arch/arm64/configs/msm-perf_defconfig index 5aae094983f6..11948f2027c2 100644 --- a/arch/arm64/configs/msm-perf_defconfig +++ b/arch/arm64/configs/msm-perf_defconfig @@ -62,6 +62,7 @@ CONFIG_ARMV8_DEPRECATED=y CONFIG_SWP_EMULATION=y CONFIG_CP15_BARRIER_EMULATION=y CONFIG_SETEND_EMULATION=y +CONFIG_ARM64_SW_TTBR0_PAN=y # CONFIG_EFI is not set CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE=y # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set diff --git a/arch/arm64/configs/msm_defconfig b/arch/arm64/configs/msm_defconfig index 2d126c64fece..f8b17ca4953c 100644 --- a/arch/arm64/configs/msm_defconfig +++ b/arch/arm64/configs/msm_defconfig @@ -60,6 +60,7 @@ CONFIG_ARMV8_DEPRECATED=y CONFIG_SWP_EMULATION=y CONFIG_CP15_BARRIER_EMULATION=y CONFIG_SETEND_EMULATION=y +CONFIG_ARM64_SW_TTBR0_PAN=y CONFIG_CMDLINE="console=ttyAMA0" # CONFIG_EFI is not set CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE=y |