]> Git Repo - linux.git/commit
mips: use generic mmap top-down layout and brk randomization
authorAlexandre Ghiti <[email protected]>
Mon, 23 Sep 2019 22:39:18 +0000 (15:39 -0700)
committerLinus Torvalds <[email protected]>
Tue, 24 Sep 2019 22:54:12 +0000 (15:54 -0700)
commit9035bd29427921cd32d268a830aff78dcafb945b
treeb3b9ae83c1f8568fac050c4d4eaf00c68b4e8c32
parent09036468c8d074b730a840657a896f81c1c92017
mips: use generic mmap top-down layout and brk randomization

mips uses a top-down layout by default that exactly fits the generic
functions, so get rid of arch specific code and use the generic version by
selecting ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT.

As ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT selects ARCH_HAS_ELF_RANDOMIZE,
use the generic version of arch_randomize_brk since it also fits.  Note
that this commit also removes the possibility for mips to have elf
randomization and no MMU: without MMU, the security added by randomization
is worth nothing.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexandre Ghiti <[email protected]>
Acked-by: Paul Burton <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Reviewed-by: Luis Chamberlain <[email protected]>
Cc: Albert Ou <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: James Hogan <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Russell King <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/mips/Kconfig
arch/mips/include/asm/processor.h
arch/mips/mm/mmap.c
This page took 0.05382 seconds and 4 git commands to generate.