-
Notifications
You must be signed in to change notification settings - Fork 872
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
[Modern eBPF] libpman: tracing program type is not supported #2792
Comments
It seems like BTF programs are not supported on your machine, try this: sudo bpftool feature probe kernel | grep -q "program_type tracing is available" && echo "true" || echo "false" Unfortunately these https://falco.org/docs/event-sources/kernel/#requirements are essential requirements to run the modern bpf probe :/ |
As far as I can see, BTF should be supported and compiled into the kernel:
The command you've sent is unreliable, as it returns false on my machine, but also returns false on our Oracle Linux 8 machines where the modern BPF actually works:
|
Having the BTF feature enabled on the system doesn't mean that all BTF programs are supported... let me explain better, there are several program types in BPF (https://docs.kernel.org/bpf/libbpf/program_types.html). In the modern probe, we need the prog type
More in detail in the modern probe we need the |
Thank you for the detailed explanation. Wouldn't it be possible just to probe this directly through the BTF sys fs export As you can see, the following tells me that the BPF type
Also, it tells me that the BPF type
|
Yeah, this seems a great idea! The best solution would probably be to implement in libbpf the possibility of probing our exact attach type |
That sounds great! We will look forward to that :) |
Hi! I just released Falco 0.36.2-rc1 that should solve this issue; care to try it? |
Sure! However, I don't see the RPM package to be available anywhere? |
Oh yep because it got published under the rpm-dev repo: https://download.falco.org/packages/rpm-dev/falco-0.36.2-rc1-x86_64.rpm |
Ah thanks. It's still failing now with the following output:
|
This seems a different problem, right?
I think the issue is because on 5.4 |
Uhm yes, the issue seems the one described by @FedeDP, BTW I've never seen this |
All right, I see. Thank you for your help and the explanation. |
When trying to start falco using modern eBPF, we get the following error:
Falco version: 0.35.1
OS: Oracle Linux 7.9
Kernel: 5.4.17-2136.322.6.2.el7uek.x86_64
Despite the kernel version is version 5.4, BPF ring buffer and BTF should be available:
Running a stracktrace seems like the kernel version isn't detected correctly (KERNEL_VERSION(0, 0, 0)):
The text was updated successfully, but these errors were encountered: