s390/vdso: map vdso above stack
authorSven Schnelle <svens@linux.ibm.com>
Wed, 6 Apr 2022 06:44:49 +0000 (08:44 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 25 Apr 2022 11:54:14 +0000 (13:54 +0200)
commit9e37a2e8546f9e48ea76c839116fa5174d14e033
tree1b7d25616ed5845c82abd8c0180ceeffb17dbd34
parent57761da4dc5cd60bed2c81ba0edb7495c3c740b8
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>
arch/s390/include/asm/processor.h
arch/s390/kernel/vdso.c