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

Commit 22b269c2 authored by dcashman's avatar dcashman
Browse files

BACKPORT: FROMLIST: mm: ASLR: use get_random_long()

(cherry picked from commit https://lkml.org/lkml/2016/2/4/833

)

Replace calls to get_random_int() followed by a cast to (unsigned long)
with calls to get_random_long().  Also address shifting bug which, in case
of x86 removed entropy mask for mmap_rnd_bits values > 31 bits.

Bug: 26963541
Signed-off-by: default avatarDaniel Cashman <dcashman@android.com>
Signed-off-by: default avatarDaniel Cashman <dcashman@google.com>
Change-Id: Ia0bc7fcd00f4116b8d5b003d4271c2a0e6a9a134
parent d41626e2
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