[PATCH 0/3] mm: userfaultfd: assorted fixes and cleanups
From: Tal Zussman
Date: Tue Jun 03 2025 - 18:15:34 EST
Two fixes and one cleanup for userfaultfd.
The second patch is a more of an RFC, as it changes previously allowed
user behavior. However, being able to unregister memory through a uffd
different from the uffd it was originally registered with seems odd enough
that I'd argue it's a bug :)
---
Tal Zussman (3):
userfaultfd: correctly prevent registering VM_DROPPABLE regions
userfaultfd: prevent unregistering VMAs through a different userfaultfd
userfaultfd: remove UFFD_CLOEXEC, UFFD_NONBLOCK, and UFFD_FLAGS_SET
fs/userfaultfd.c | 17 +++++++++++++----
include/linux/userfaultfd_k.h | 6 +-----
2 files changed, 14 insertions(+), 9 deletions(-)
---
base-commit: 546b1c9e93c2bb8cf5ed24e0be1c86bb089b3253
change-id: 20250531-uffd-fixes-142331b15e63
Best regards,
--
Tal Zussman <tz2294@xxxxxxxxxxxx>