summaryrefslogtreecommitdiff
path: root/Documentation/vm
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2021-06-16 04:23:16 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2021-06-16 19:24:42 +0300
commit099dd6878b9b12d6bbfa6bf29ce0c8ddd38f6901 (patch)
treeb6088a641393719d3fd835cd9a0c346ba7c54b30 /Documentation/vm
parent25182f05ffed0b45602438693e4eed5d7f3ebadd (diff)
downloadlinux-099dd6878b9b12d6bbfa6bf29ce0c8ddd38f6901.tar.xz
mm/swap: fix pte_same_as_swp() not removing uffd-wp bit when compare
I found it by pure code review, that pte_same_as_swp() of unuse_vma() didn't take uffd-wp bit into account when comparing ptes. pte_same_as_swp() returning false negative could cause failure to swapoff swap ptes that was wr-protected by userfaultfd. Link: https://lkml.kernel.org/r/20210603180546.9083-1-peterx@redhat.com Fixes: f45ec5ff16a7 ("userfaultfd: wp: support swap and page migration") Signed-off-by: Peter Xu <peterx@redhat.com> Acked-by: Hugh Dickins <hughd@google.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: <stable@vger.kernel.org> [5.7+] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/vm')
0 files changed, 0 insertions, 0 deletions