From: dcashman Date: Wed, 24 Feb 2016 21:31:22 +0000 (-0800) Subject: FROMLIST: mm: ASLR: use get_random_long() X-Git-Tag: firefly_0821_release~2958^2~19 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b471fcdaec3d419ddcbe416568f3f9ce7f1e9ef8;hp=b471fcdaec3d419ddcbe416568f3f9ce7f1e9ef8;p=firefly-linux-kernel-4.4.55.git 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: Daniel Cashman Signed-off-by: Daniel Cashman Change-Id: I36c156c9b8d7d157134895fddd4cd6efddcbee86 ---