OSDN Git Service

[S390] Write protect module text and RO data
authorJan Glauber <jang@linux.vnet.ibm.com>
Tue, 15 Mar 2011 16:08:22 +0000 (17:08 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Tue, 15 Mar 2011 16:08:23 +0000 (17:08 +0100)
commit305b1523250faf9675919def94906775992ce52d
tree2dcbe253cf463eca3c0dfcc9ee8ac7b97cfa5021
parentd54cddb620fa493968111f479029dcd910fcb921
[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>
arch/s390/Kconfig.debug
arch/s390/include/asm/cacheflush.h
arch/s390/mm/Makefile
arch/s390/mm/pageattr.c [new file with mode: 0644]