Skip to content

feat: recreate /dev/userfaultfd inside the jail - #2

Merged
aaqaishtyaq merged 1 commit into
mainfrom
feat/jail-userfaultfd
Aug 21, 2026
Merged

feat: recreate /dev/userfaultfd inside the jail#2
aaqaishtyaq merged 1 commit into
mainfrom
feat/jail-userfaultfd

Conversation

@aaqaishtyaq

@aaqaishtyaq aaqaishtyaq commented Aug 21, 2026

Copy link
Copy Markdown
Member

Cloud Hypervisor OnDemand restore creates the uffd in-process after dropping privileges. Recreate the host /dev/userfaultfd character device inside the jail and chown it to the jail UID so the VMM does not need vm.unprivileged_userfaultfd=1.

This is the grant Cloud Hypervisor documents in snapshot_restore.md. Firecracker's external uffd-handler is out of scope.

Version bump: 0.1.10 → 0.1.11.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Cloud Hypervisor OnDemand restore creates the uffd in-process after
dropping privileges. Recreate the host character device and chown it
to the jail UID so the VMM does not need vm.unprivileged_userfaultfd=1.
@aaqaishtyaq
aaqaishtyaq merged commit c2dbaea into main Aug 21, 2026
3 checks passed
@aaqaishtyaq
aaqaishtyaq deleted the feat/jail-userfaultfd branch August 21, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant