summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-05-16 06:49:40 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-05-16 06:49:40 -0700
commitfb8be73fa6150bfaa3be3f0d522c3fe936ea404e (patch)
tree68117b26bdb0ab2350b27ea4eac737eaae041241
parented23e3c43b221b95f24c7a1069f2282ff0b4841a (diff)
parentc3ed5ae37c61a68ef813885126fe09529792b6c5 (diff)
Merge "ARM64: Make KERNEL_TEXT_RDONLY depend on !DEBUG_RODATA"
-rw-r--r--arch/arm64/Kconfig.debug2
-rw-r--r--arch/arm64/configs/msm-auto_defconfig1
-rw-r--r--arch/arm64/configs/msm_defconfig1
3 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm64/Kconfig.debug b/arch/arm64/Kconfig.debug
index 2b9a966791d8..441005f88761 100644
--- a/arch/arm64/Kconfig.debug
+++ b/arch/arm64/Kconfig.debug
@@ -87,7 +87,6 @@ config DEBUG_ALIGN_RODATA
config FORCE_PAGES
bool "Force lowmem to be mapped with 4K pages"
- depends on !DEBUG_RODATA
help
There are some advanced debug features that can only be done when
memory is mapped with pages instead of sections. Enable this option
@@ -112,6 +111,7 @@ config FREE_PAGES_RDONLY
config KERNEL_TEXT_RDONLY
bool "Set kernel text section pages as read only"
depends on FREE_PAGES_RDONLY
+ depends on !DEBUG_RODATA
help
The kernel text pages are always mapped in the kernel.
This means that anyone can write to the page if they have
diff --git a/arch/arm64/configs/msm-auto_defconfig b/arch/arm64/configs/msm-auto_defconfig
index e3fbb5166478..1981b97309a2 100644
--- a/arch/arm64/configs/msm-auto_defconfig
+++ b/arch/arm64/configs/msm-auto_defconfig
@@ -638,7 +638,6 @@ CONFIG_PANIC_ON_DATA_CORRUPTION=y
CONFIG_ARM64_PTDUMP=y
CONFIG_DEBUG_SET_MODULE_RONX=y
CONFIG_FREE_PAGES_RDONLY=y
-CONFIG_KERNEL_TEXT_RDONLY=y
CONFIG_CORESIGHT=y
CONFIG_CORESIGHT_EVENT=y
CONFIG_CORESIGHT_LINK_AND_SINK_TMC=y
diff --git a/arch/arm64/configs/msm_defconfig b/arch/arm64/configs/msm_defconfig
index 80e737e5726c..5c4b307b1887 100644
--- a/arch/arm64/configs/msm_defconfig
+++ b/arch/arm64/configs/msm_defconfig
@@ -622,7 +622,6 @@ CONFIG_PANIC_ON_DATA_CORRUPTION=y
CONFIG_ARM64_PTDUMP=y
CONFIG_DEBUG_SET_MODULE_RONX=y
CONFIG_FREE_PAGES_RDONLY=y
-CONFIG_KERNEL_TEXT_RDONLY=y
CONFIG_PFK=y
CONFIG_SECURITY=y
CONFIG_SECURITY_SELINUX=y