Skip to content
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

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

Open
wenlxie opened this issue Sep 21, 2023 · 1 comment
Open

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

wenlxie opened this issue Sep 21, 2023 · 1 comment

Comments

@wenlxie
Copy link

wenlxie commented Sep 21, 2023

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

@wenlxie wenlxie changed the title Code generated by this cool can't pass the verifier eBPf Code generated by this tool can't pass the verifier Sep 21, 2023
@arthurfabre
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants