Re: [PATCH 2/5] mm: expose arch_mmap_rnd when available

2015-03-09 Thread Russell King - ARM Linux
On Mon, Mar 02, 2015 at 04:19:45PM -0800, Kees Cook wrote: > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 9f1f09a2bc9b..248d99cabaa8 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -3,6 +3,7 @@ config ARM > default y > select ARCH_BINFMT_ELF_RANDOMIZE_PIE >

[PATCH 2/5] mm: expose arch_mmap_rnd when available

2015-03-02 Thread Kees Cook
When an architecture fully supports randomizing the ELF load location, a per-arch mmap_rnd() function is used to finding a randomized mmap base. In preparation for randomizing the location of ET_DYN binaries separately from mmap, this renames and exports these functions as arch_mmap_rnd(). Addition

[PATCH 2/5] mm: expose arch_mmap_rnd when available

2015-02-26 Thread Kees Cook
When an architecture fully supports randomizing the ELF load location, the arch_mmap_rnd() function becomes available. Rename and expose these functions where they exist. Introduces CONFIG_ARCH_HAS_ELF_RANDOMIZE. Signed-off-by: Kees Cook --- arch/Kconfig | 7 +++ arch/arm/K