You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# bpftool feature probe | grep sockopt
eBPF program_type cgroup_sockopt is available
- bpf_setsockopt
- bpf_getsockopt
- bpf_setsockopt
- bpf_getsockopt
eBPF helpers supported for program type cgroup_sockopt:
- bpf_setsockopt
- bpf_getsockopt
Expected output:
# bpftool feature probe | grep sockopt
eBPF program_type cgroup_sockopt is available
- bpf_setsockopt
- bpf_getsockopt
eBPF helpers supported for program type cgroup_sockopt:
Version:
# bpftool --version
bpftool v5.10.140
Kernel Version:
# uname -r
5.10.0-14-amd64
The helper bpf_getsockopt did not get merged into kernel until 5.12 due to my research. Cilium is using bpftool to check whether this helper exist. On kernel 5.10, bpftool show this helper exist, so cilium tries to use this helper and crashed because it does not exist. I tried bpftool on kernel 5.4.214, it correctly show the absence of the helper.
The text was updated successfully, but these errors were encountered:
Patches for bpftool should be sent to the mailing list. I don't mind too much if issues are opened here, although reports will have more visibility on the mailing list. Thanks for the report :)
Did you try with the latest version of bpftool to see if the issue is still present? Can you also tell for what program types the helpers were incorrectly detected? (It's not possible to tell from your filtered output).
Overall, the probes have changed somewhat after they were reworked in libbpf some time ago (not sure when, but after 5.10 so I wouldn't be surprised if the issue has been fixed).
Output:
Expected output:
Version:
Kernel Version:
The helper
bpf_getsockopt
did not get merged into kernel until 5.12 due to my research. Cilium is using bpftool to check whether this helper exist. On kernel 5.10, bpftool show this helper exist, so cilium tries to use this helper and crashed because it does not exist. I tried bpftool on kernel 5.4.214, it correctly show the absence of the helper.The text was updated successfully, but these errors were encountered: