Skip to content

mm/uffd: Fix vma check

Peter Xu linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] revert-mm-uffd-fix-warning-without-pte_marker_uffd_wp-compiled-in.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/uffd: Fix vma check on userfault for wpinclude/linux/userfaultfd_k.h+3 -31 replyApplied
2/2Revert "mm/uffd: fix warning without PTE_MARKER_UFFD_WP compiled in"mm/hugetlb.c mm/memory.c mm/mprotect.c+0 -80 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] mm/uffd: Fix vma check

I just got time to have a closer look on the uffd-wp triggering of the warning here:

https://lore.kernel.org/all/YzeR+R6b4bwBlBHh@x1n/T/#u

It turns out to be a wrong check on vma, and with the fix attached we should be able to remove the ugly macro checks. Sorry for the bothersome.

Please have a look, thanks.

Peter Xu (2):
mm/uffd: Fix vma check on userfault for wp
Revert "mm/uffd: fix warning without PTE_MARKER_UFFD_WP compiled in"

 include/linux/userfaultfd_k.h | 6 +++---
 mm/hugetlb.c                  | 4 ----
 mm/memory.c                   | 2 --
 mm/mprotect.c                 | 2 --
 4 files changed, 3 insertions(+), 11 deletions(-)
Signature · 1 line
2.37.3