cloudflare/cbpfc

eBPf Code generated by this tool can't pass the verifier

wenlxie opened this issue · 1 comments

I am checking for how to make xdpcap can works by fentry/fexit instead of tail call, so that it can hook to xdp prog dynamically without change xdp prog's code.

I met issues that cbpf->ebpf instructions can't pass the verify of bpf.
Any suggestions for this?

More details:
cloudflare/xdpcap#51 (comment)

Does this tools can be enhanced the cBPF codes to pass the bpf verifier?

Thanks

Do you have an example set of cBPF instructions that don't pass the verifier? I haven't had time to look at cloudflare/xdpcap#51 (comment) closely, but it looks like the issue is with the hand crafted eBPF in xdpcap itself?