Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7707691e authored by dcashman's avatar dcashman Committed by Gerrit - the friendly Code Review server
Browse files

FROMLIST: arm: mm: support ARCH_MMAP_RND_BITS.

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

)

arm: arch_mmap_rnd() uses a hard-code value of 8 to generate the
random offset for the mmap base address.  This value represents a
compromise between increased ASLR effectiveness and avoiding
address-space fragmentation. Replace it with a Kconfig option, which
is sensibly bounded, so that platform developers may choose where to
place this  compromise. Keep 8 as the minimum acceptable value.

Bug: 24047224
Signed-off-by: default avatarDaniel Cashman <dcashman@android.com>
Signed-off-by: default avatarDaniel Cashman <dcashman@google.com>
Git-commit: 983bb4778143ef60deaeaffba320d316b8b3d263
Git-repo: https://android.googlesource.com/kernel/common.git


[schikk@codeaurora.org conflict resolved]
CRs-Fixed: 1066871
Change-Id: If5ae03b7db3742ff7ec607ae5e9b44c7a540e79c
Signed-off-by: default avatarSwetha Chikkaboraiah <schikk@codeaurora.org>
parent 5b23c6e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment