diff options
author | Kees Cook <keescook@chromium.org> | 2015-04-15 00:47:54 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-15 01:49:05 +0200 |
commit | ed6322746afb74c2509e2f3a6464182793b16eb9 (patch) | |
tree | 0e1998c27632be0877cb01ea547f41611a7834b9 /net/key | |
parent | mips: extract logic for mmap_rnd() (diff) | |
download | linux-ed6322746afb74c2509e2f3a6464182793b16eb9.tar.xz linux-ed6322746afb74c2509e2f3a6464182793b16eb9.zip |
powerpc: standardize mmap_rnd() usage
In preparation for splitting out ET_DYN ASLR, this refactors the use of
mmap_rnd() to be used similarly to arm and x86.
(Can mmap ASLR be safely enabled in the legacy mmap case here? Other
archs use "mm->mmap_base = TASK_UNMAPPED_BASE + random_factor".)
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions