| commit | 5028330d9f0275042208e110455fb3a4c4948372 | [log] [tgz] |
|---|---|---|
| author | dcashman <[email protected]> | Wed Feb 24 13:31:22 2016 -0800 |
| committer | Kees Cook <[email protected]> | Thu Mar 24 15:25:49 2016 -0700 |
| tree | 9ea98a4cfb2cbc42bf60383253fc11eb2a2a6e88 | |
| parent | 42780d8db3e11038b484376aa3134b3c876b8523 [diff] |
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. Signed-off-by: Daniel Cashman <[email protected]> Signed-off-by: Daniel Cashman <[email protected]> Bug: 27796957 Patchset: ASLR sysctl Change-Id: Ia66447c8e07db36b76789f6a61ea3d14a14707df Signed-off-by: Kees Cook <[email protected]>