summaryrefslogtreecommitdiff
path: root/include/linux/mm_inline.h
diff options
context:
space:
mode:
authorRodrigo Vivi <rodrigo.vivi@intel.com>2023-05-17 09:30:24 -0400
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-05-17 09:30:24 -0400
commit9c3a985f88fa4de82bf4bda906095ce6444e9039 (patch)
tree4b02653fcb1ba1e6b342d98ac58f6206c56be935 /include/linux/mm_inline.h
parent86634ba3dfc789497805da3d5774fcc1953cbe41 (diff)
parentac9a78681b921877518763ba0e89202254349d1b (diff)
downloadlwn-9c3a985f88fa4de82bf4bda906095ce6444e9039.tar.gz
lwn-9c3a985f88fa4de82bf4bda906095ce6444e9039.zip
Merge drm/drm-next into drm-intel-next
Backmerge to get some hwmon dependencies. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'include/linux/mm_inline.h')
-rw-r--r--include/linux/mm_inline.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mm_inline.h b/include/linux/mm_inline.h
index de1e622dd366..0e1d239a882c 100644
--- a/include/linux/mm_inline.h
+++ b/include/linux/mm_inline.h
@@ -557,6 +557,12 @@ pte_install_uffd_wp_if_needed(struct vm_area_struct *vma, unsigned long addr,
/* The current status of the pte should be "cleared" before calling */
WARN_ON_ONCE(!pte_none(*pte));
+ /*
+ * NOTE: userfaultfd_wp_unpopulated() doesn't need this whole
+ * thing, because when zapping either it means it's dropping the
+ * page, or in TTU where the present pte will be quickly replaced
+ * with a swap pte. There's no way of leaking the bit.
+ */
if (vma_is_anonymous(vma) || !userfaultfd_wp(vma))
return;