s390/vdso: add vdso randomization
authorSven Schnelle <svens@linux.ibm.com>
Wed, 6 Apr 2022 07:17:21 +0000 (09:17 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 25 Apr 2022 11:54:15 +0000 (13:54 +0200)
commit41cd81abafdc4e58a93fcb677712a76885e3ca25
tree4b24529929f568256b7316f7eaa696722f089af9
parent9e37a2e8546f9e48ea76c839116fa5174d14e033
s390/vdso: add vdso randomization

Randomize the address of vdso if randomize_va_space is enabled.
Note that this keeps the vdso address on the same PMD as the stack
to avoid allocating an extra page table just for vdso.

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/kernel/vdso.c