]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit535ecc578a04610bc5c7fbaec649b58fc8b6fe4a
tree4b24529929f568256b7316f7eaa696722f089af9
parenta2bb47694bf804463a034eb62b64d70d2acb73bd
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