diff options
author | Sven Schnelle | 2022-04-06 08:44:49 +0200 |
---|---|---|
committer | Heiko Carstens | 2022-04-25 13:54:14 +0200 |
commit | 9e37a2e8546f9e48ea76c839116fa5174d14e033 (patch) | |
tree | 1b7d25616ed5845c82abd8c0180ceeffb17dbd34 /arch/s390/kernel | |
parent | 57761da4dc5cd60bed2c81ba0edb7495c3c740b8 (diff) |
s390/vdso: map vdso above stack
In the current code vdso is mapped below the stack. This is
problematic when programs mapped to the top of the address space
are allocating a lot of memory, because the heap will clash with
the vdso. To avoid this map the vdso above the stack and move
STACK_TOP so that it all fits into three level paging.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/vdso.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/vdso.c b/arch/s390/kernel/vdso.c index 22cb727d5821..7ba84a88ea2a 100644 --- a/arch/s390/kernel/vdso.c +++ b/arch/s390/kernel/vdso.c @@ -221,7 +221,7 @@ unsigned long vdso_size(void) int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) { - return map_vdso(0, vdso_size()); + return map_vdso(VDSO_BASE, vdso_size()); } static struct page ** __init vdso_setup_pages(void *start, void *end) |