Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux/EmulatedFiles: Check return for memfd_create & work around hack #4139

Closed
wants to merge 1 commit into from

Conversation

asahilina
Copy link
Contributor

xshmwrap is a hack to make libxshmfence use shared memory files for futexes instead of memfds. To do this, it bans memfd_create(*, MFD_ALLOW_SEALING | MFD_CLOEXEC) using seccomp-bpf. This happens to hit the FEX GenTmpFD() code.

If this failure happens, work around it by setting the FD_CLOEXEC flag separately.1

xshmwrap is a hack to make libxshmfence use shared memory files for
futexes instead of memfds. To do this, it bans memfd_create(*,
MFD_ALLOW_SEALING | MFD_CLOEXEC) using seccomp-bpf. This happens to hit
the FEX GenTmpFD() code.

If this failure happens, work around it by setting the FD_CLOEXEC flag
separately.

Signed-off-by: Asahi Lina <[email protected]>
@alyssarosenzweig
Copy link
Collaborator

upstream fix merged

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.

2 participants