Heiko Carstens
75c10d5377
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>
2024-07-31 16:30:20 +02:00
..
2024-06-25 15:57:20 +02:00
2024-05-21 12:09:36 -07:00
2024-05-21 12:09:36 -07:00
2024-07-23 16:02:32 +02:00
2024-07-23 16:02:32 +02:00
2024-07-23 16:02:31 +02:00
2021-10-01 16:52:48 -04:00
2024-03-07 14:41:15 +01:00
2024-04-25 20:55:49 -07:00
2021-10-01 16:52:48 -04:00
2022-05-06 20:45:16 +02:00
2024-02-16 14:30:15 +01:00
2023-07-03 11:19:40 +02:00
2022-07-19 16:18:49 +02:00
2024-06-05 17:03:24 +02:00
2023-09-19 13:26:57 +02:00
2024-07-24 20:59:29 +02:00
2024-07-21 17:15:46 -07:00
2023-07-03 11:19:42 +02:00
2024-06-18 17:01:33 +02:00
2024-07-23 16:02:32 +02:00
2023-04-19 17:24:17 +02:00
2023-07-27 13:11:35 +02:00
2024-02-12 15:03:33 +01:00
2024-07-23 16:02:32 +02:00
2023-12-23 10:41:09 +01:00
2024-07-31 16:30:20 +02:00
2024-07-03 19:30:24 -07:00
2022-03-10 15:58:17 +01:00
2023-09-19 13:26:57 +02:00
2024-07-23 16:02:32 +02:00
2024-06-18 17:01:33 +02:00
2021-07-27 09:39:13 +02:00
2024-07-23 16:02:31 +02:00
2024-06-18 17:01:33 +02:00
2022-06-24 09:48:55 +02:00
2024-02-23 17:48:23 -08:00
2024-02-23 17:48:23 -08:00
2024-05-21 12:09:36 -07:00
2022-02-06 23:31:29 +01:00
2024-02-23 17:48:23 -08:00
2024-07-23 16:02:32 +02:00
2024-07-23 16:02:33 +02:00
2023-08-09 15:20:50 +02:00
2024-05-14 00:31:44 -07:00
2024-06-18 17:01:33 +02:00
2024-07-23 16:02:31 +02:00
2024-07-23 16:02:31 +02:00
2022-03-22 15:57:10 -07:00
2024-04-29 17:33:29 +02:00
2024-04-09 17:29:56 +02:00
2024-07-23 16:02:30 +02:00
2024-06-18 17:01:33 +02:00
2024-05-14 13:37:06 +02:00
2024-06-18 17:01:33 +02:00
2024-06-18 17:01:33 +02:00
2024-02-16 14:30:16 +01:00
2024-06-18 17:01:33 +02:00
2024-07-23 16:02:31 +02:00
2024-02-16 14:30:16 +01:00
2024-07-23 16:02:32 +02:00
2023-04-19 17:24:18 +02:00
2023-02-06 11:13:53 +01:00
2023-02-06 11:13:53 +01:00
2024-07-23 16:02:32 +02:00
2024-02-16 14:30:15 +01:00
2024-07-23 16:02:31 +02:00
2024-05-14 13:37:07 +02:00
2024-07-10 19:50:45 +02:00
2024-07-18 15:41:45 -07:00
2024-03-13 09:23:44 +01:00
2024-02-09 13:58:13 +01:00
2024-06-18 17:01:33 +02:00
2024-07-24 20:59:29 +02:00
2024-07-21 17:15:46 -07:00
2024-07-03 19:30:25 -07:00
2024-02-12 15:03:33 +01:00
2024-07-23 16:02:33 +02:00
2024-05-14 13:37:07 +02:00
2024-04-17 13:38:01 +02:00
2024-07-31 16:30:20 +02:00
2024-06-18 17:01:33 +02:00