-
Notifications
You must be signed in to change notification settings - Fork 171
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
Wrap BPF_CORE_*
helper calls with kernel version checks
#21
Comments
it works on 5.5 kernel [root@centos-dev pwru]# ./pwru --filter-dst-ip=10.169.72.236 --filter-dst-port=8472 --filter-proto=udp --output-tuple
|
The |
BPF_CORE_*
helper calls with kernel version checks
ok, that sounds good, my issue happens to be in 5.4, I can't think of what tool I can use to trouble shoot the issue, hope pwru could help here. |
In this case we should update the readme, because it says kernel version 5.3 |
@vincentmli For your debugging you could revert 00de303 and build the tool yourself (please refer to README.md how to do that). Let me know if you have problems with this. I think for older kernels we could rely on |
@brb thanks, git revert has some conflicts so I manually changed the code, it works on 5.4, FYI, I got different output for my issue, do you see any problem there :) cilium/cilium#17528 (comment) |
add a PR to fix it. #27 |
@vincentmli Just stumbled into the issue again, as I am able to run on 5.4 kernel (Ubuntu 20.04).
Could you attach your kernel configuration and |
We came to early to a conclusion regarding >= 5.5 min kernel. The tool works on 5.3 too. See [1] [1]: #21 (comment) Signed-off-by: Martynas Pumputis <m@lambda.lt>
We came to early to a conclusion regarding >= 5.5 min kernel. The tool works on 5.3 too. See [1] [1]: #21 (comment) Signed-off-by: Martynas Pumputis <m@lambda.lt>
@brb I attached bpftool feature and default ubuntu 5.4 kernel config, yes, it would be really nice to run pwru on default ubuntu 5.4 :) |
@vincentmli Thanks. Interesting, you might be running into the lockdown issues (iovisor/bcc#2565). I am running on the following:
Could you try running |
by the way, i tried to re-build pwru with most recent master branch, I got error
|
also fyi, https://github.com/ehids/ecapture and cilium tetragon runs fine on the same ubuntu |
I guess these two project not involving |
so far I am unable to find evidence that my ubuntu VM is in lockdown mode or not after reading through online resources :) |
I need to upgrade golang to 1.18.3 and above issue is resolved |
@brb the issue is resolved after I build most recent pwru from mater branch, it might be because I am using an old pwru on this new installed ubuntu 20.04 |
Do you mean that |
correct |
Cool, then closing this issue! |
Hi,
I am trying to use pwru to trouble shoot issue cilium/cilium#17528. this is on 5.4 kernel, I got error
[root@centos-dev pwru]# ./pwru --filter-dst-ip=10.169.72.236 --filter-dst-port=8472 --filter-proto=udp --output-stack
The text was updated successfully, but these errors were encountered: