Skip to content

UserfaultFD: Extension for non cooperative uffd usage

Pavel Emelyanov linux-api linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3uffd: Tossing bits aroundfs/userfaultfd.c+28 -90 replies
2/3uffd: Introduce the v2 APIfs/userfaultfd.c include/uapi/linux/userfaultfd.h+62 -154 replies
3/3uffd: Introduce fork() notificationfs/userfaultfd.c include/linux/userfaultfd_k.h include/uapi/linux/userfaultfd.h +1 more+194 -60 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] UserfaultFD: Extension for non cooperative uffd usage

Hi,

On the recent LSF Andrea presented his userfault-fd patches and I had shown some issues that appear in usage scenarios when the monitor task and mm task do not cooperate to each other on VM changes (and fork()-s).

Here's the implementation of the extended uffd API that would help us to address those issues.

As proof of concept I've implemented only fix for fork() case, but I also plan to add the mremap() and exit() notifications, both are also required for such non-cooperative usage.

More details about the extension itself is in patch #2 and the fork() notification description is in patch #3.

Comments and suggestion are warmly welcome :)

Andrea, what's the best way to go on with the patches -- would you prefer to include them in your git tree or should I instead continue with them on my own, re-sending them when required? Either way would be OK for me.

Thanks,
Pavel