{"push_id":1362506043,"size":2,"distinct_size":2,"ref":"refs/heads/mkm","head":"5183dcb47447cff15d95f548d7a471e3f7f1264a","before":"a5787b08437176e4de40dd4ef8cc7de730f7938c","commits":[{"sha":"51a94684dff2dc29452adde8e0f4d4e452b8424b","author":{"name":"Linus Torvalds","email":"ead7104581934751970e9decb2db5deb20a9e407@linux-foundation.org"},"message":"BACKPORT: mm: remove gup_flags FOLL_WRITE games from __get_user_pages()\n\ncommit 19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619 upstream.\n\nThis is an ancient bug that was actually attempted to be fixed once\n(badly) by me eleven years ago in commit 4ceb5db9757a (\"Fix\nget_user_pages() race for write access\") but that was then undone due to\nproblems on s390 by commit f33ea7f404e5 (\"fix get_user_pages bug\").\n\nIn the meantime, the s390 situation has long been fixed, and we can now\nfix it by checking the pte_dirty() bit properly (and do it better).  The\ns390 dirty bit was implemented in abf09bed3cce (\"s390/mm: implement\nsoftware dirty bits\") which made it into v3.9.  Earlier kernels will\nhave to look at the page state itself.\n\nAlso, the VM has become more scalable, and what used a purely\ntheoretical race back then has become easier to trigger.\n\nTo fix it, we introduce a new internal FOLL_COW flag to mark the \"yes,\nwe already did a COW\" rather than play racy games with FOLL_WRITE that\nis very fundamental, and then use the pte dirty flag to validate that\nthe FOLL_COW flag is still valid.\n\nChange-Id: I06c15f5676ea9c51e0da139f50f707c2ac279f76\nReported-and-tested-by: Phil \"not Paul\" Oester <kernel@linuxace.com>\nAcked-by: Hugh Dickins <hughd@google.com>\nReviewed-by: Michal Hocko <mhocko@suse.com>\nCc: Andy Lutomirski <luto@kernel.org>\nCc: Kees Cook <keescook@chromium.org>\nCc: Oleg Nesterov <oleg@redhat.com>\nCc: Willy Tarreau <w@1wt.eu>\nCc: Nick Piggin <npiggin@gmail.com>\nCc: Greg Thelen <gthelen@google.com>\nCc: stable@vger.kernel.org\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>\n[wt: s/gup.c/memory.c; s/follow_page_pte/follow_page_mask;\n     s/faultin_page/__get_user_page]\nSigned-off-by: Willy Tarreau <w@1wt.eu>","distinct":true,"url":"https://api.github.com/repos/MoKee/android_kernel_sony_msm8x27/commits/51a94684dff2dc29452adde8e0f4d4e452b8424b"},{"sha":"5183dcb47447cff15d95f548d7a471e3f7f1264a","author":{"name":"martincz","email":"9eccfaca879daa038a410859bd0ef76c6c204ee6@mokeedev.com"},"message":"Merge branch 'remote' into mkm","distinct":true,"url":"https://api.github.com/repos/MoKee/android_kernel_sony_msm8x27/commits/5183dcb47447cff15d95f548d7a471e3f7f1264a"}]}
{"actor":{"display_login":"mokeeopensource"}}