]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] Mark kernel text section read-only.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 5 Feb 2007 20:18:41 +0000 (21:18 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 5 Feb 2007 20:18:41 +0000 (21:18 +0100)
commit1d8f62ad3f92d11e780b4a4cc97d09171e5a73ae
treed7f1b61fbe822e71867bd04ee4ee7f3f1cd20842
parentb8148a85094fbd5000c54cfd2cd8711716565838
[S390] Mark kernel text section read-only.

Set read-only flag in the page table entries for the kernel image text
section. This will catch all instruction caused corruptions withing the
text section.
Instruction replacement via kprobes still works, since it bypasses now
dynamic address translation.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/early.c
arch/s390/kernel/kprobes.c
arch/s390/kernel/vmlinux.lds.S
arch/s390/mm/init.c
include/asm-s390/sections.h