summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorVasily Gorbik2019-08-02 17:44:29 +0200
committerVasily Gorbik2019-08-06 13:58:34 +0200
commit218ddd5acfeae9e19a2fa97c284bf3c2e9de8ebd (patch)
tree066d640c9289dd5e91cb7858ce32511d9d681e38 /arch/s390
parents390/mm: fix dump_pagetables top level page table walking (diff)
downloadkernel-qcow2-linux-218ddd5acfeae9e19a2fa97c284bf3c2e9de8ebd.tar.gz
kernel-qcow2-linux-218ddd5acfeae9e19a2fa97c284bf3c2e9de8ebd.tar.xz
kernel-qcow2-linux-218ddd5acfeae9e19a2fa97c284bf3c2e9de8ebd.zip
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>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kernel/setup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c
index 2b94b0ad3588..253177900950 100644
--- a/arch/s390/kernel/setup.c
+++ b/arch/s390/kernel/setup.c
@@ -1114,8 +1114,7 @@ void __init setup_arch(char **cmdline_p)
ROOT_DEV = Root_RAM0;
- /* Is init_mm really needed? */
- init_mm.start_code = PAGE_OFFSET;
+ init_mm.start_code = (unsigned long) _text;
init_mm.end_code = (unsigned long) _etext;
init_mm.end_data = (unsigned long) _edata;
init_mm.brk = (unsigned long) _end;