OSDN Git Service

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)
commit8a8f7866663588b162031a5348c24e42161461cd
treeddfbcd6e478cb0a38aab8eeeab14667d7c1bc5f0
parentc814bf958926ff45a9c1e899bd001006ab6cfbae
powerpc/vdso: Don't map VDSO at a fixed address on PPC32

PPC64 removed default mapping address from VDSO in
commit 30d0b3682887 ("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