Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mm/userfaultfd: fixes for unmap and fork events
@ 2026-11-29 16:25 Mike Rapoport
  2026-11-29 16:25 ` [PATCH 1/2] mm/userfaultfd: account memory allocated for unmap events Mike Rapoport
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mike Rapoport @ 2026-11-29 16:25 UTC (permalink / raw)
  To: Andrew Morton, David Hildenbrand
  Cc: Chris Mason, Mike Rapoport, Peter Xu, linux-mm

These are two small fixes for userfaultfd events.

The first patch charges the memory allocated for unmap events to a memory
cgroup, so that these events can't be abused to bypass memcg memory limits.

The second patch fixes a purely theoretical deadlock in the handling of
fork events. So many unlikely things have to happen at the same time that
it's hard to imagine anybody hitting it in real life, but it's easy to fix.

---
Chris Mason (2):
      mm/userfaultfd: account memory allocated for unmap events
      mm/userfaultfd: drop fork context reference outside event_wqh.lock

 mm/userfaultfd.c | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261129-fixes-uffd-fork-acct-6b94acb0bc25

--
Sincerely yours,
Mike.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-29 17:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29 16:25 [PATCH 0/2] mm/userfaultfd: fixes for unmap and fork events Mike Rapoport
2026-11-29 16:25 ` [PATCH 1/2] mm/userfaultfd: account memory allocated for unmap events Mike Rapoport
2026-11-29 16:25 ` [PATCH 2/2] mm/userfaultfd: drop fork context reference outside event_wqh.lock Mike Rapoport
2026-11-29 17:58 ` [PATCH 0/2] mm/userfaultfd: fixes for unmap and fork events Jose A. Perez de Azpillaga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox