]> git.baikalelectronics.ru Git - kernel.git/commit
s390: add DEBUG_RODATA support
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 17 Mar 2016 11:47:12 +0000 (12:47 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 17 Mar 2016 12:18:25 +0000 (13:18 +0100)
commit405564b6ca891b4841e2e4573043d14c16418eaa
tree0e28a601b13c837111e41e64dafafea2a3bca93e
parente1a509bfdb3b598ce8ab919dd5c98427dfd15e73
s390: add DEBUG_RODATA support

git commit 5ef14caade66 ("mm/init: Add 'rodata=off' boot cmdline
parameter to disable read-only kernel mappings") adds a bogus warning
to the console which states that s390 does not support kernel memory
protection.

This however is not true. We do support that since a couple of years
however in a different way than the author of the above named patch
expected.

To get rid of the misleading message implement the mark_rodata_ro
function and emit a message which states the amount of memory which
was write protected already earlier.

This is the same what parisc currently does.

We currently do not support the kernel parameter "rodata=off" which
would allow to write to the rodata section again. However since we
have this feature since years without any problems there is no reason
to add support for this.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/Kconfig
arch/s390/mm/init.c