mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
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>
This commit is contained in:
parent
6cad0eb561
commit
19733fe872
2 changed files with 2 additions and 1 deletions
|
@ -315,7 +315,7 @@ ENTRY(startup_kdump)
|
||||||
brasl %r14,startup_kernel
|
brasl %r14,startup_kernel
|
||||||
|
|
||||||
.Lstack:
|
.Lstack:
|
||||||
.long 0x8000 + THREAD_SIZE - STACK_FRAME_OVERHEAD
|
.long 0x8000 + (1<<(PAGE_SHIFT+BOOT_STACK_ORDER)) - STACK_FRAME_OVERHEAD
|
||||||
.align 8
|
.align 8
|
||||||
6: .long 0x7fffffff,0xffffffff
|
6: .long 0x7fffffff,0xffffffff
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#else
|
#else
|
||||||
#define THREAD_SIZE_ORDER 2
|
#define THREAD_SIZE_ORDER 2
|
||||||
#endif
|
#endif
|
||||||
|
#define BOOT_STACK_ORDER 2
|
||||||
#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
|
#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
Loading…
Reference in a new issue