diff options
| author | dcashman <dcashman@google.com> | 2016-01-12 09:51:16 -0800 |
|---|---|---|
| committer | John Stultz <john.stultz@linaro.org> | 2016-02-16 13:54:15 -0800 |
| commit | d51891f0fd12b5ad52bc9056933132f2b24f3407 (patch) | |
| tree | 145d5e4edb980c056e1ed1782b6e7d6e1e73b51d /kernel/task_work.c | |
| parent | e2240a15c1f686fc53e8c308f46c8c16cc80302b (diff) | |
FROMLIST: x86: mm: support ARCH_MMAP_RND_BITS.
(cherry picked from commit https://lkml.org/lkml/2015/12/21/339)
x86: arch_mmap_rnd() uses hard-coded values, 8 for 32-bit and 28 for
64-bit, 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 default
values as new minimums.
Bug: 24047224
Signed-off-by: Daniel Cashman <dcashman@android.com>
Signed-off-by: Daniel Cashman <dcashman@google.com>
Change-Id: Ic38735a8de2943843a73b5c20855ccfa92513422
Diffstat (limited to 'kernel/task_work.c')
0 files changed, 0 insertions, 0 deletions
