{"push_id":3038852682,"size":1,"distinct_size":1,"ref":"refs/heads/lineage-15.1","head":"007384bb69555f37b6af1d789e5949d44e58fd5e","before":"27a877cb1d083c74cc97a6eeeb80e5cda81bc7ad","commits":[{"sha":"007384bb69555f37b6af1d789e5949d44e58fd5e","author":{"name":"Marissa Wall","email":"dfdd147e0d31ffa94f60174fe3bbdbabee0568c5@google.com"},"message":"BACKPORT: Sanitize 'move_pages()' permission checks\n\nThe 'move_paghes()' system call was introduced long long ago with the\nsame permission checks as for sending a signal (except using\nCAP_SYS_NICE instead of CAP_SYS_KILL for the overriding capability).\n\nThat turns out to not be a great choice - while the system call really\nonly moves physical page allocations around (and you need other\ncapabilities to do a lot of it), you can check the return value to map\nout some the virtual address choices and defeat ASLR of a binary that\nstill shares your uid.\n\nSo change the access checks to the more common 'ptrace_may_access()'\nmodel instead.\n\nThis tightens the access checks for the uid, and also effectively\nchanges the CAP_SYS_NICE check to CAP_SYS_PTRACE, but it's unlikely that\nanybody really _uses_ this legacy system call any more (we hav ebetter\nNUMA placement models these days), so I expect nobody to notice.\n\nFamous last words.\n\nReported-by: Otto Ebeling <otto.ebeling@iki.fi>\nAcked-by: Eric W. Biederman <ebiederm@xmission.com>\nCc: Willy Tarreau <w@1wt.eu>\nCc: stable@kernel.org\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>\n\ncherry-picked from: 197e7e521384a23b9e585178f3f11c9fa08274b9\n\nThis branch does not have the PTRACE_MODE_REALCREDS flag but its\ndefault behavior is the same as PTRACE_MODE_REALCREDS. So use\nPTRACE_MODE_READ instead of PTRACE_MODE_READ_REALCREDS.\n\nChange-Id: I75364561d91155c01f78dd62cdd41c5f0f418854","distinct":true,"url":"https://api.github.com/repos/BunsExynos/android_kernel_samsung_exynos7580-common/commits/007384bb69555f37b6af1d789e5949d44e58fd5e"}]}
{"actor":{"display_login":"BunsExynos"}}