{"push_id":1265665749,"size":1,"distinct_size":1,"ref":"refs/heads/cm-14.0","head":"2d1b22b00237b6a824ac3a886676259df14c4361","before":"3bb8c5228f7c413bc873f564d617a03d4c32b5cb","commits":[{"sha":"2d1b22b00237b6a824ac3a886676259df14c4361","author":{"name":"dcashman","email":"3d629d435dc38ffde22fdd784f2eb4e36e384463@google.com"},"message":"FROMLIST: drivers: char: random: add get_random_long()\n\n(cherry picked from commit https://lkml.org/lkml/2016/2/4/831)\n\nd07e22597d1d355 (\"mm: mmap: add new /proc tunable for mmap_base ASLR\")\nadded the ability to choose from a range of values to use for entropy\ncount in generating the random offset to the mmap_base address.  The\nmaximum value on this range was set to 32 bits for 64-bit x86 systems, but\nthis value could be increased further, requiring more than the 32 bits of\nrandomness provided by get_random_int(), as is already possible for arm64.\nAdd a new function: get_random_long() which more naturally fits with the\nmmap usage of get_random_int() but operates exactly the same as\nget_random_int().\n\nAlso, fix the shifting constant in mmap_rnd() to be an unsigned long so\nthat values greater than 31 bits generate an appropriate mask without\noverflow.  This is especially important on x86, as its shift instruction\nuses a 5-bit mask for the shift operand, which meant that any value for\nmmap_rnd_bits over 31 acts as a no-op and effectively disables mmap_base\nrandomization.\n\nFinally, replace calls to get_random_int() with get_random_long() where\nappropriate.\n\nBug: 26963541\nSigned-off-by: Daniel Cashman <dcashman@android.com>\nSigned-off-by: Daniel Cashman <dcashman@google.com>\nChange-Id: Ie7552631b5db86f3482cf15e7dc916d89c1c502b","distinct":true,"url":"https://api.github.com/repos/CyanogenMod/android_kernel_htc_msm8994/commits/2d1b22b00237b6a824ac3a886676259df14c4361"}]}
{"actor":{"display_login":"cm-gerrit"}}