]> git.baikalelectronics.ru Git - kernel.git/commit
s390/setup: adjust start_code of init_mm to _text
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 2 Aug 2019 15:44:29 +0000 (17:44 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 6 Aug 2019 11:58:34 +0000 (13:58 +0200)
commit3e5fa28325f78ac009cbb32ceddff40ef96db787
tree066d640c9289dd5e91cb7858ce32511d9d681e38
parent798c0f8b5a1376e5885d7a3c4325dfd85fda8a45
s390/setup: adjust start_code of init_mm to _text

After some investigation it doesn't look like init_mm fields
start_code/end_code are used anywhere besides potentially in dump_mm for
debugging purposes. Originally the value of 0 for start_code reflected
the presence of lowcore and early boot code. But with kaslr in place
start_code/end_code range should not span over unoccupied by the code
segment memory. So, adjust init_mm start_code to point at the beginning
of the code segment like other architectures do it.

Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/setup.c