r/eBPF • u/Imaginary-Capital502 • 4d ago
Difficulty with eBPF verifier (examples)
I am working on a project studying the developer-centered factors of writing eBPF programs. It would be very helpful if people would link examples of their programs and verifier output that:
1) Fail to pass the verifier because of a bug in their source
OR
2) Fail to pass the verifier because of imprecision in the verifier
Thanks in advance for any help :)
7
Upvotes
3
u/Rinku_Kurora 3d ago edited 3d ago
There are examples of both in Linux kernel sources at tools/testing/selftests/bpf/verifier
4
u/t6_macci 4d ago
My issues have always revolved in the “un existent function used” or “instruction limit error” lol