March 6, 2026
3:53 p.m.
v2: - use MEMFD_EXEC flag. By default memfd_create() is supposed to create without noexec, but since kernel 6.3 it is possible to change system defaults in various ways: have default with noexec, or deny creating memfd files with executable perimissions. With the flag it should just work in the latter case and in the latter case fail and fallback to other ways of creating temp mapping file. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10251#note_131469