s390: redefine randomize_et_dyn for ELF_ET_DYN_BASE
authorKees Cook <keescook@chromium.org>
Tue, 14 Apr 2015 22:48:04 +0000 (15:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Apr 2015 23:49:05 +0000 (16:49 -0700)
commitc6f5b001e65cdac592b65a08c5d2dd179cfba568
tree3039e744e13eac169969882aed3226a8f6ce6186
parent2b68f6caeac271620cd2f9362aeaed360e317df0
s390: redefine randomize_et_dyn for ELF_ET_DYN_BASE

In preparation for moving ET_DYN randomization into the ELF loader (which
requires a static ELF_ET_DYN_BASE), this redefines s390's existing ET_DYN
randomization in a call to arch_mmap_rnd(). This refactoring results in
the same ET_DYN randomization on s390.

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/s390/include/asm/elf.h
arch/s390/mm/mmap.c