-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Can't failback to O_TMPFILE when memfd_create failed #3965
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Based on my tests, this is something weird going on on those old kernels (maybe an LSM issue?). If the issue was the lack of Very strange. I will fire up an Ubuntu VM and figure out what is going on... |
Yes, I also feel very strange. |
Sorry for this description, but it's another silly problem. Because in my vm, the |
Ah, I see. The problem is that |
Description
In some old kernels, we will use
O_TMPFILE
ormkostemp
,but at this time, the runc state dir has not been created yet.So we will got an error like this:FATA[0000] nsexec[37893]: could not ensure we are a cloned binary: Permission denied WARN[0000] error="waiting for init preliminary setup: EOF" ERRO[0000] runc run failed: unable to start container process: can't copy bootstrap data to pipe: write init-p: broken pipe
Steps to reproduce the issue
memfd
code: https://github.com/opencontainers/runc/blob/main/libcontainer/nsenter/cloned_binary.c#L358-L378Describe the results you received and expected
The container should be started normally.
What version of runc are you using?
runc version 1.1.0+dev
commit: v1.1.0-680-g0d890ad6-dirty
spec: 1.1.0
go: go1.18.4
libseccomp: 2.5.1
Host OS information
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Host kernel information
Linux acmcoder 5.15.0-78-generic #85~20.04.1-Ubuntu SMP Mon Jul 17 09:42:39 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: