-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
"failed to call BPF_PROG_ATTACH (BPF_CGROUP_DEVICE, BPF_F_ALLOW_MULTI): can't attach program: invalid argument: unknown" (master, kernel 5.4, cgroup2) #3008
Comments
Probably |
So |
Yeah that explains it. I went through the source to figure out how they handle |
Turns out they used |
This allows callers to detect the underlying syscall error, which is necessary for being able to implement safe fallbacks based on the error during program loading and unloading. runc in particular needs this to be able to implement BPF_F_REPLACE fallbacks correctly. Ref: opencontainers/runc#3008 Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This allows callers to detect the underlying syscall error, which is necessary for being able to implement safe fallbacks based on the error during program loading and unloading. runc in particular needs this to be able to implement BPF_F_REPLACE fallbacks correctly. Ref: opencontainers/runc#3008 Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This issue has just bit me on a system with a 5.4 kernel, using the released version of runc 1.2.2:
Downgrading to the prior version of containerd.io (therefore runc) fixes it again:
|
Okay, it seems that in #4397 the update to use Anchors (cilium/ebpf@417f8a2) didn't update the usage in If you ran |
@jmason what distro are you using? Asking because we don't hit this issue in CI. It seems that the only possible way to have that is Ubuntu 20.04 LTS with
|
@kolyshkin it's an Ubuntu 22.04 LTS running on an Odroid SBC, using their vendor kernel (which is still 5.4.275-434), unfortunately. |
docker run
does not work at all with runc 4d6b929 , cgroup v2, and kernel 5.4, due to thefailed to call BPF_PROG_ATTACH (BPF_CGROUP_DEVICE, BPF_F_ALLOW_MULTI): can't attach program: invalid argument: unknown.
error.Found in moby/moby#42450 , discussed in #2986
The text was updated successfully, but these errors were encountered: