]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: fix mapping of read-only kernel text section
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 4 Oct 2012 15:02:02 +0000 (17:02 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2012 12:16:59 +0000 (14:16 +0200)
commit48663d724bc5198476d71c3a310d2aa0132e02da
treeb8dc843924f66162ccdcbd77a1e245ee9b72b490
parent4b0419d32db41f1cff59aa61b1be68365f51b2d0
s390/mm: fix mapping of read-only kernel text section

Within the identity mapping the kernel text section is mapped read-only.
However when mapping the first and last page of the text section we must
round upwards and downwards respectively, if only parts of a page belong
to the section.
Otherwise potential rw data can be mapped read-only. So the rounding must
be done just the other way we have it right now.

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