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

arm uses a top-down mmap 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 arm to have elf
randomization and no MMU: without MMU, the security added by randomization
is worth nothing.

Note that it is safe to remove STACK_RND_MASK since it matches the default
value.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexandre Ghiti <[email protected]>
Acked-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: Paul Burton <[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/arm/Kconfig
arch/arm/include/asm/processor.h
arch/arm/kernel/process.c
arch/arm/mm/mmap.c
This page took 0.051868 seconds and 4 git commands to generate.