-
-
Notifications
You must be signed in to change notification settings - Fork 533
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
several race conditions in eBPF program #426
Comments
Hi, @evilsocket , I think you are right, it might be racy. |
i'm not even sure that the precompiled eBPF program would run on anything but 5.x ( see #427 ) ... anyways, that primitive is translated to
and i believe these opcodes are there since eBPF was there ... not sure |
tested on 4.12.14, 4.15.0, 4.18, 5.4.0, 5.8.4 and 5.10.x (and 4.19 (i386)). On 4.9 (debian9) fails with |
@gustavo-iniguez-goya what's the |
CONFIG_BPF=y CONFIG_KPROBES=y |
On the other hand, I've realized that we fail to enable this method on Debian Buster, because for some reason IPv6 established sockets can not be dumped via netlink:
we fail here: https://github.com/evilsocket/opensnitch/blob/master/daemon/procmon/ebpf/ebpf.go#L140 . Letting it continue without returning there, ebpf works as expected. Some systems/users disable IPv6, and I added a check ( But maybe the problem is that there're no ipv6 connections... no idea, I'll investigate it. |
ok, that's the problem, no TCP IPv6 connections, so we can ignore that error and keep working if eBPF doesn't fail to load. |
I believe that increments like this one should be done via:
according to this:
i'm not an eBPF expert so before moving forward with the fixes i'd like to hear from @gustavo-iniguez-goya and @themighty1
The text was updated successfully, but these errors were encountered: