]>
 
 
git.apps.os.sepia.ceph.com Git - ceph-client.git/commit 
 
 
 
 
 
 
s390/vmlinux.lds.S: Move ro_after_init section behind rodata section 
 
The .data.rel.ro and .got section were added between the rodata and 
ro_after_init data section, which adds an RW mapping in between all RO 
mapping of the kernel image: 
 
---[ Kernel Image Start ]--- 
0x000003ffe0000000-0x000003ffe0e00000        14M PMD RO X 
0x000003ffe0e00000-0x000003ffe0ec7000       796K PTE RO X 
0x000003ffe0ec7000-0x000003ffe0f00000       228K PTE RO NX 
0x000003ffe0f00000-0x000003ffe1300000         4M PMD RO NX 
0x000003ffe1300000-0x000003ffe1331000       196K PTE RO NX 
0x000003ffe1331000-0x000003ffe13b3000       520K PTE RW NX <--- 
0x000003ffe13b3000-0x000003ffe13d5000       136K PTE RO NX 
0x000003ffe13d5000-0x000003ffe1400000       172K PTE RW NX 
0x000003ffe1400000-0x000003ffe1500000         1M PMD RW NX 
0x000003ffe1500000-0x000003ffe1700000         2M PTE RW NX 
0x000003ffe1700000-0x000003ffe1800000         1M PMD RW NX 
0x000003ffe1800000-0x000003ffe187e000       504K PTE RW NX 
---[ Kernel Image End ]--- 
 
Move the ro_after_init data section again right behind the rodata 
section to prevent interleaving RO and RW mappings: 
 
---[ Kernel Image Start ]--- 
0x000003ffe0000000-0x000003ffe0e00000        14M PMD RO X 
0x000003ffe0e00000-0x000003ffe0ec7000       796K PTE RO X 
0x000003ffe0ec7000-0x000003ffe0f00000       228K PTE RO NX 
0x000003ffe0f00000-0x000003ffe1300000         4M PMD RO NX 
0x000003ffe1300000-0x000003ffe1353000       332K PTE RO NX 
0x000003ffe1353000-0x000003ffe1400000       692K PTE RW NX 
0x000003ffe1400000-0x000003ffe1500000         1M PMD RW NX 
0x000003ffe1500000-0x000003ffe1700000         2M PTE RW NX 
0x000003ffe1700000-0x000003ffe1800000         1M PMD RW NX 
0x000003ffe1800000-0x000003ffe187e000       504K PTE RW NX 
---[ Kernel Image End ]--- 
 
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>  
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>  
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>