{"push_id":1351130905,"size":5,"distinct_size":5,"ref":"refs/heads/a3xelte-mm-restart","head":"63868a70f6bd828a0a0cef199a4165dc557b37c7","before":"ea0bf990a57b389a6aad25a0c07d47972807bb25","commits":[{"sha":"e1f3c2e487ee7aee5b0f5ae82759f3a9180c3da9","author":{"name":"dcashman","email":"3d629d435dc38ffde22fdd784f2eb4e36e384463@google.com"},"message":"BACKPORT: FROMLIST: arm64: mm: support ARCH_MMAP_RND_BITS.\n\n(cherry picked from commit https://lkml.org/lkml/2015/12/21/340)\n\narm64: arch_mmap_rnd() uses STACK_RND_MASK to generate the\nrandom offset for the mmap base address.  This value represents a\ncompromise between increased ASLR effectiveness and avoiding\naddress-space fragmentation. Replace it with a Kconfig option, which\nis sensibly bounded, so that platform developers may choose where to\nplace this compromise. Keep default values as new minimums.\n\nBug: 24047224\nSigned-off-by: Daniel Cashman <dcashman@android.com>\nSigned-off-by: Daniel Cashman <dcashman@google.com>\nChange-Id: I7caf105b838cfc3ab55f275e1a061eb2b77c9a2a\n\n# Conflicts:\n#\tarch/arm64/mm/mmap.c","distinct":true,"url":"https://api.github.com/repos/Khaon/android_kernel_samsung_a3xelte/commits/e1f3c2e487ee7aee5b0f5ae82759f3a9180c3da9"},{"sha":"b6ac26540eaad279b7201c1cb6d624ac5375c0bc","author":{"name":"dcashman","email":"3d629d435dc38ffde22fdd784f2eb4e36e384463@google.com"},"message":"BACKPORT: FROMLIST: mm: ASLR: use get_random_long()\n\n(cherry picked from commit https://lkml.org/lkml/2016/2/4/833)\n\nReplace calls to get_random_int() followed by a cast to (unsigned long)\nwith calls to get_random_long().  Also address shifting bug which, in case\nof x86 removed entropy mask for mmap_rnd_bits values > 31 bits.\n\nBug: 26963541\nSigned-off-by: Daniel Cashman <dcashman@android.com>\nSigned-off-by: Daniel Cashman <dcashman@google.com>\nChange-Id: Ie577b21a0678cf4b21eae06bddd8ccb27cbe70ff\n\n# Conflicts:\n#\tarch/arm/mm/mmap.c\n#\tarch/x86/mm/mmap.c","distinct":true,"url":"https://api.github.com/repos/Khaon/android_kernel_samsung_a3xelte/commits/b6ac26540eaad279b7201c1cb6d624ac5375c0bc"},{"sha":"1984eded87067c163f3f5317754ab06c9d3ab971","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: I4078acd6f4b40d33dc1a07cfc6d436e1b301c430","distinct":true,"url":"https://api.github.com/repos/Khaon/android_kernel_samsung_a3xelte/commits/1984eded87067c163f3f5317754ab06c9d3ab971"},{"sha":"30214ee204f8877e1193387e9219bc694b87a482","author":{"name":"dcashman","email":"3d629d435dc38ffde22fdd784f2eb4e36e384463@google.com"},"message":"FROMLIST: mm: mmap: Add new /proc tunable for mmap_base ASLR.\n\n(cherry picked from commit https://lkml.org/lkml/2015/12/21/337)\n\nASLR  only uses as few as 8 bits to generate the random offset for the\nmmap base address on 32 bit architectures. This value was chosen to\nprevent a poorly chosen value from dividing the address space in such\na way as to prevent large allocations. This may not be an issue on all\nplatforms. Allow the specification of a minimum number of bits so that\nplatforms desiring greater ASLR protection may determine where to place\nthe trade-off.\n\nBug: 24047224\nSigned-off-by: Daniel Cashman <dcashman@android.com>\nSigned-off-by: Daniel Cashman <dcashman@google.com>\nChange-Id: I66ac01c6f4f2c8dcfc84d1f1e99490b8385b3ed4","distinct":true,"url":"https://api.github.com/repos/Khaon/android_kernel_samsung_a3xelte/commits/30214ee204f8877e1193387e9219bc694b87a482"},{"sha":"63868a70f6bd828a0a0cef199a4165dc557b37c7","author":{"name":"Maxime Poulain","email":"65e144a4dcc28096950dec088cae25ecd32fd8df@outlook.be"},"message":"added Battery Life eXtender (BLX) version 1.\nAdapted from https://github.com/Ezekeel/GLaDOS-nexus-s/commit/ef7fd14ce8b6e04641f6bfc4af281030964c2dc7\n\n# Conflicts:\n#\tdrivers/battery/s2mu003_charger.c\n#\tdrivers/battery/sec_battery.c\n#\tdrivers/misc/Makefile","distinct":true,"url":"https://api.github.com/repos/Khaon/android_kernel_samsung_a3xelte/commits/63868a70f6bd828a0a0cef199a4165dc557b37c7"}]}
{"actor":{"display_login":"Khaon"}}