FROMLIST: mm: mmap: Add new /proc tunable for mmap_base ASLR.
authordcashman <dcashman@google.com>
Tue, 12 Jan 2016 17:18:57 +0000 (09:18 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:54:14 +0000 (13:54 -0800)
commitd49d88766ba924b3df96d9fc1c1a257b90970b74
tree47b3e74a9e80db79d26c4c6ba4c5bc992b96a403
parent29a4f01daa11254debe7aba980681bb838dfff1b
FROMLIST: mm: mmap: Add new /proc tunable for mmap_base ASLR.

(cherry picked from commit https://lkml.org/lkml/2015/12/21/337)

ASLR  only uses as few as 8 bits to generate the random offset for the
mmap base address on 32 bit architectures. This value was chosen to
prevent a poorly chosen value from dividing the address space in such
a way as to prevent large allocations. This may not be an issue on all
platforms. Allow the specification of a minimum number of bits so that
platforms desiring greater ASLR protection may determine where to place
the trade-off.

Bug: 24047224
Signed-off-by: Daniel Cashman <dcashman@android.com>
Signed-off-by: Daniel Cashman <dcashman@google.com>
Change-Id: Ibf9ed3d4390e9686f5cc34f605d509a20d40e6c2
Documentation/sysctl/vm.txt
arch/Kconfig
include/linux/mm.h
kernel/sysctl.c
mm/mmap.c