diff options
author | Jan Glauber <jang@linux.vnet.ibm.com> | 2011-03-15 17:08:22 +0100 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2011-03-15 17:08:23 +0100 |
commit | 305b1523250faf9675919def94906775992ce52d (patch) | |
tree | 2dcbe253cf463eca3c0dfcc9ee8ac7b97cfa5021 /arch/s390/Kconfig.debug | |
parent | [S390] dasd: get rid of compile warning (diff) | |
download | linux-305b1523250faf9675919def94906775992ce52d.tar.xz linux-305b1523250faf9675919def94906775992ce52d.zip |
[S390] Write protect module text and RO data
Implement write protection for kernel modules text and read-only
data sections by implementing set_memory_[ro|rw] on s390.
Since s390 has no execute bit in the pte's NX is not supported.
set_memory_[ro|rw] will only work on normal pages and not on
large pages, so in case a large page should be modified bail
out with a warning.
Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/Kconfig.debug')
-rw-r--r-- | arch/s390/Kconfig.debug | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/Kconfig.debug b/arch/s390/Kconfig.debug index 2b380df95606..d76cef3fef37 100644 --- a/arch/s390/Kconfig.debug +++ b/arch/s390/Kconfig.debug @@ -31,4 +31,7 @@ config DEBUG_STRICT_USER_COPY_CHECKS If unsure, or if you run an older (pre 4.4) gcc, say N. +config DEBUG_SET_MODULE_RONX + def_bool y + depends on MODULES endmenu |