Hi ZFS returns EINVAL error 22 on posix_allocate used by firefox on wayland. a workaround is to use tmpfs or another non zfs fs for /tmp.
Does it affect ZFS on Linux as well? Can you report upstream instead?
If it's using memfd, it won't affect Linux, though IIRC there's a couple different places where a memory fd is needed and only one of them uses memfd (?) SHM_ANON was used too but I've heard something about it being removed??
(In reply to Greg V from comment #2) Firefox itself also uses posix_fallocate but maybe not for long. https://hg.mozilla.org/mozilla-central/rev/9e7204579027 https://bugzilla.mozilla.org/show_bug.cgi?id=1543687
A commit references this bug: Author: jbeich Date: Fri Feb 28 18:20:55 UTC 2020 New revision: 527346 URL: https://svnweb.freebsd.org/changeset/ports/527346 Log: www/firefox: unbreak native Wayland if XDG_RUNTIME_DIR on ZFS XDG_RUNTIME_DIR should be on tmpfs(5) for optimal performance but if users want on permanent storage like ZFS don't abort. PR: 240884 Reported by: jsm Changes: head/mail/thunderbird/Makefile head/mail/thunderbird/files/patch-bug1618914 head/www/cliqz/Makefile head/www/cliqz/files/patch-bug1618914 head/www/firefox/Makefile head/www/firefox/files/patch-bug1618914 head/www/firefox-esr/Makefile head/www/firefox-esr/files/patch-bug1618914
Can someone confirm the fix helps?
If no one confirms I'm going to back out the fix. After that the bug maybe closed per feedback timeout as I've never could reproduce the original issue.
(In reply to Jan Beich from comment #6) Looks like it might not have helped @nomadlogic: https://gitter.im/FreeBSDDesktop/Lobby?at=5e8cab0c3a85536c43148c06 Might be because you only did WaylandShmPool::CreateTemporaryFile but not WaylandShmPool::Resize (disclaimer: I'm looking at current Firefox code, not releases, but I don't think that changed recently)
A commit references this bug: Author: jbeich Date: Fri May 29 23:26:00 UTC 2020 New revision: 537006 URL: https://svnweb.freebsd.org/changeset/ports/537006 Log: www/firefox: also check posix_fallocate error in WaylandShmPool::Resize PR: 240884 Submitted by: Greg V Changes: head/mail/thunderbird/Makefile head/mail/thunderbird/files/patch-bug1618914 head/www/firefox/Makefile head/www/firefox/files/patch-bug1618914 head/www/firefox-esr/Makefile head/www/firefox-esr/files/patch-bug1618914
A commit references this bug: Author: jbeich Date: Sat May 30 00:22:43 UTC 2020 New revision: 537012 URL: https://svnweb.freebsd.org/changeset/ports/537012 Log: MFH: r537006 www/firefox: also check posix_fallocate error in WaylandShmPool::Resize PR: 240884 Submitted by: Greg V Approved by: ports-secteam blanket Changes: _U branches/2020Q2/ branches/2020Q2/mail/thunderbird/Makefile branches/2020Q2/mail/thunderbird/files/patch-bug1618914 branches/2020Q2/www/firefox/Makefile branches/2020Q2/www/firefox/files/patch-bug1618914 branches/2020Q2/www/firefox-esr/Makefile branches/2020Q2/www/firefox-esr/files/patch-bug1618914
A commit references this bug: Author: jbeich Date: Sun May 31 09:24:22 UTC 2020 New revision: 537140 URL: https://svnweb.freebsd.org/changeset/ports/537140 Log: www/firefox: don't abort WaylandShmPool::Resize if posix_fallocate succeeds PR: 240884 Submitted by: tijl Pointy hat to: jbeich Changes: head/mail/thunderbird/Makefile head/mail/thunderbird/files/patch-bug1618914 head/www/firefox/Makefile head/www/firefox/files/patch-bug1618914 head/www/firefox-esr/Makefile head/www/firefox-esr/files/patch-bug1618914
A commit references this bug: Author: jbeich Date: Sun May 31 09:26:44 UTC 2020 New revision: 537141 URL: https://svnweb.freebsd.org/changeset/ports/537141 Log: MFH: r537140 www/firefox: don't abort WaylandShmPool::Resize if posix_fallocate succeeds PR: 240884 Submitted by: tijl Pointy hat to: jbeich Approved by: ports-secteam blanket Changes: _U branches/2020Q2/ branches/2020Q2/mail/thunderbird/Makefile branches/2020Q2/mail/thunderbird/files/patch-bug1618914 branches/2020Q2/www/firefox/Makefile branches/2020Q2/www/firefox/files/patch-bug1618914 branches/2020Q2/www/firefox-esr/Makefile branches/2020Q2/www/firefox-esr/files/patch-bug1618914
Committed May 31 09:24:22 UTC 2020 as r537140. ^Triage: assign to committer that resolved.