]> 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)
commit6a661f20def541ef8e022b0036f85cb84f856361
tree4b24529929f568256b7316f7eaa696722f089af9
parent0540fb51ff99f92ddbf63ef43756878ac0f20fa6
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