]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/vdso: Don't map VDSO at a fixed address on PPC32
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 18 Aug 2022 17:31:25 +0000 (19:31 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 22 Aug 2022 03:36:59 +0000 (13:36 +1000)
commite6b79769a02b6f16f64bfe066beae53452b07b25
treeddfbcd6e478cb0a38aab8eeeab14667d7c1bc5f0
parent338b3ffd49d84ddbc63cdece4d40f26f6ecf5bd4
powerpc/vdso: Don't map VDSO at a fixed address on PPC32

PPC64 removed default mapping address from VDSO in
commit 4a4054ad2d34 ("powerpc: Move 64bit VDSO to improve context
switch performance").

Do like PPC64 and let get_unmapped_area() place the VDSO mapping
at the address it wants, don't force a default address.

This allows randomisation of VDSO address.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/cba76f5a5b01fcc49415e632d92c11c1c5998cab.1660843877.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/vdso.h
arch/powerpc/kernel/vdso.c