diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2018-01-12 12:46:00 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2018-10-09 11:21:32 +0200 |
commit | 19733fe8721b8d91b799c91082ebb9c139ca6710 (patch) | |
tree | 0d56f1df32e8e413d1c2a9b3578327e537920f5b /arch/s390/boot/head.S | |
parent | 6cad0eb561357dfde382b8d8c03c6ee30c0bff48 (diff) | |
download | linux-stable-19733fe8721b8d91b799c91082ebb9c139ca6710.tar.gz linux-stable-19733fe8721b8d91b799c91082ebb9c139ca6710.tar.bz2 linux-stable-19733fe8721b8d91b799c91082ebb9c139ca6710.zip |
s390/head: avoid doubling early boot stack size under KASAN
Early boot stack uses predefined 4 pages of memory 0x8000-0xC000. This
stack is used to run not instumented decompressor/facilities
verification C code. It doesn't make sense to double its size when
the kernel is built with KASAN support. BOOT_STACK_ORDER is introduced
to avoid that.
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/boot/head.S')
-rw-r--r-- | arch/s390/boot/head.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/boot/head.S b/arch/s390/boot/head.S index e209cfe69bb9..ce2cbbc41742 100644 --- a/arch/s390/boot/head.S +++ b/arch/s390/boot/head.S @@ -315,7 +315,7 @@ ENTRY(startup_kdump) brasl %r14,startup_kernel .Lstack: - .long 0x8000 + THREAD_SIZE - STACK_FRAME_OVERHEAD + .long 0x8000 + (1<<(PAGE_SHIFT+BOOT_STACK_ORDER)) - STACK_FRAME_OVERHEAD .align 8 6: .long 0x7fffffff,0xffffffff |