diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-09-04 09:31:54 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-09-04 09:31:54 -0700 |
commit | b25d1dc9474e1f0cefca994885e82beea271acfe (patch) | |
tree | 27b4216414a6ccb5cc65999a0c249d005f01d1cf /lib/usercopy.c | |
parent | cfc905f158eaa099d6258031614d11869e7ef71c (diff) | |
parent | 798a6b87ecd72828a6c6b5469aaa2032a57e92b7 (diff) | |
download | linux-stable-b25d1dc9474e1f0cefca994885e82beea271acfe.tar.gz linux-stable-b25d1dc9474e1f0cefca994885e82beea271acfe.tar.bz2 linux-stable-b25d1dc9474e1f0cefca994885e82beea271acfe.zip |
Merge branch 'simplify-do_wp_page'
Merge emailed patches from Peter Xu:
"This is a small series that I picked up from Linus's suggestion to
simplify cow handling (and also make it more strict) by checking
against page refcounts rather than mapcounts.
This makes uffd-wp work again (verified by running upmapsort)"
Note: this is horrendously bad timing, and making this kind of
fundamental vm change after -rc3 is not at all how things should work.
The saving grace is that it really is a a nice simplification:
8 files changed, 29 insertions(+), 120 deletions(-)
The reason for the bad timing is that it turns out that commit
17839856fd58 ("gup: document and work around 'COW can break either way'
issue" broke not just UFFD functionality (as Peter noticed), but Mikulas
Patocka also reports that it caused issues for strace when running in a
DAX environment with ext4 on a persistent memory setup.
And we can't just revert that commit without re-introducing the original
issue that is a potential security hole, so making COW stricter (and in
the process much simpler) is a step to then undoing the forced COW that
broke other uses.
Link: https://lore.kernel.org/lkml/alpine.LRH.2.02.2009031328040.6929@file01.intranet.prod.int.rdu2.redhat.com/
* emailed patches from Peter Xu <peterx@redhat.com>:
mm: Add PGREUSE counter
mm/gup: Remove enfornced COW mechanism
mm/ksm: Remove reuse_ksm_page()
mm: do_wp_page() simplification
Diffstat (limited to 'lib/usercopy.c')
0 files changed, 0 insertions, 0 deletions