mips: extract logic for mmap_rnd()
authorKees Cook <keescook@chromium.org>
Tue, 14 Apr 2015 22:47:51 +0000 (15:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Apr 2015 23:49:05 +0000 (16:49 -0700)
commit1f0569df0b0285e7ec2432d804a4921b06a61618
tree04f5a3abc1ec569dfa39f679a3f13a7d55692cc9
parentdd04cff1dceab18226853b555cf07914648a235f
mips: extract logic for mmap_rnd()

In preparation for splitting out ET_DYN ASLR, extract the mmap ASLR
selection into a separate function.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/mips/mm/mmap.c