Implementing userfaultfd

32 views
Skip to first unread message

Brian Model

unread,
Jun 17, 2025, 11:36:14 AMJun 17
to gVisor Development [Public]
Hey!

I noticed that the issue for userfaultfd has been open for a pretty long time (https://github.com/google/gvisor/issues/266). We're currently in the process of migrating from VMs to containers and want to use gvisor, but we depend on this syscall.

Are there any plans to take another look at it? If not, I'm willing to take a look at it. It seems like the main issue is that you'd need to validate the process has access to the region it's trying to register + implementing the ioctl calls to set the permissions. Is there something major I'm missing?

Thanks!

Andrei Vagin

unread,
Jun 17, 2025, 1:10:04 PMJun 17
to Brian Model, gVisor Development [Public]
Hi Brian,

We don't have any plans for userfaultfd, so we don't mind if someone
else implements it. I think your basic understanding is right, but
there might be more details you'll figure out once you start working
on it.

Thanks,
Andrei
> --
> You received this message because you are subscribed to the Google Groups "gVisor Development [Public]" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gvisor-dev+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/gvisor-dev/a4ad8d00-e8f5-4fe4-b03d-1bbf53e99a3cn%40googlegroups.com.

Brian Model

unread,
Jun 17, 2025, 4:49:41 PMJun 17
to gVisor Development [Public]
Hi Andrei,

Makes sense thank you! We'll likely start looking more into this in the next few months then. Will send some updates once we get started!

Best,
Brian

Reply all
Reply to author
Forward
0 new messages