-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
fcntl(F_ADD_SEALS): Device or resource busy #3409
Comments
Also see my fedora issue at https://bugzilla.redhat.com/show_bug.cgi?id=1747363 |
This is really weird. I've never seen it (and i'm on f31 with nvidia drivers). |
Certainly. |
This is the failing part:
I have no idea why this would ever fail. It is purely an in-memory operation, no "device" or "resources" are involved. |
Oh:
|
But how could there be a mapping? We just created it and we didn't map it! |
Just to isolate this, any chance you could boot into text-mode without the nvidia driver and see if this is reproducible? |
Well, as far as I can tell it's the same without nvidia stuff (text mode, no Xorg/sddm): The only other 'special' thing about the system is that I'm using |
The problem is still there on fedora 32. |
I noticed you get this problem if you have transparent huge pages always enabled for shmem. void
buffer_to_sealed_memfd_or_tmpfile2 (const char *name,
const char *content,
size_t len)
{
int memfd = memfd_create (name, MFD_CLOEXEC | MFD_ALLOW_SEALING);
ftruncate (memfd, len);
write (memfd, content, len);
lseek (memfd, 0, SEEK_SET);
errno = 0;
fcntl (memfd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW | F_SEAL_WRITE | F_SEAL_SEAL);
perror("fcntl result: ");
} |
The problem is still there on fedora 33.
So, candide-guevara is right: on my machine it is set to |
If I set the parameter to
|
Is this problem still reproducible? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f2b277c4d1c63a85127e8aa2588e9cc3bd21cb99 should have fixed it (it did for me). |
Linux distribution and version
$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 31 (Thirty One)
Release: 31
Codename: ThirtyOne
Flatpak version
$ rpm -qa flatpak
flatpak-1.4.3-3.fc31.x86_64
Description of the problem
Can't start/run/use any app installed with flatpak. E.g.
org.signal.Signal
:$ flatpak -v run org.signal.Signal F: No installations directory in /etc/flatpak/installations.d. Skipping F: Opening system flatpak installation at path /var/lib/flatpak F: Opening user flatpak installation at path /mnt/home/tpasch/.local/share/flatpak F: Opening user flatpak installation at path /mnt/home/tpasch/.local/share/flatpak F: Opening system flatpak installation at path /var/lib/flatpak F: Opening user flatpak installation at path /mnt/home/tpasch/.local/share/flatpak F: Opening system flatpak installation at path /var/lib/flatpak Fehler: fcntl(F_ADD_SEALS): Device or resource busy
Steps to reproduce
Should be a problem on all fedora systems. Maybe the culprit is the nvidia driver (which I have to use).
The text was updated successfully, but these errors were encountered: