UBUNTU: ubuntu: nx-emu - i386: mmap randomization for executable mappings
authorIngo Molnar <mingo@elte.hu>
Wed, 14 Jul 2010 07:55:23 +0000 (00:55 -0700)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:09:52 +0000 (13:09 -0700)
commit84e69060f8c56b39a6cd05f103418fc044cbffdd
tree9fc64e0e22b670f457e14196f01906b22fd50afb
parent48109c4db83cc0f8f5924da2f3cce8610f69758f
UBUNTU: ubuntu: nx-emu - i386: mmap randomization for executable mappings

This code is originally from Ingo Molnar, with some later rebasing and
fixes to respect all the randomization-disabling knobs. It provides
address randomization algorithm when NX emulation is in use in 32-bit
processes. Kees Cook pushed the brk area further away in the case of PIE
binaries landing their brk inside the CS limit.

Signed-off-by: Kees Cook <kees.cook@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
arch/x86/kernel/process.c
arch/x86/mm/mmap.c
arch/x86/vdso/vdso32-setup.c
include/linux/mm.h
include/linux/mm_types.h
include/linux/sched.h
mm/mmap.c
mm/mremap.c