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

nat64-bpf: Kernel verifier blocks loading the program's latest version #42

Open
bhaskar792 opened this issue Mar 17, 2022 · 0 comments
Open

Comments

@bhaskar792
Copy link

OS: Ubuntu 21.10
Kernel-Version: 5.13.0-35-generic
libbpf commit: be89b28f96be426e30a2b0c5312d13b30ee518c7 (same as checked in the nat64 example)
Clang, llvm version: 13

The commit Handle ICMP rewriting on the nat64-bpf example doesn't pass the kernel verifier check and kernel verifier blocks the program loading. The issue is with the rewrite_icmpv6 function mainly with the lines where we return -1. If lines where we check for MTU bounds and return -1 if out of bound is commented along with the code below it in rewrite_icmpv6 function then it works. Similarly, if we comment all the return statements below apart from the last return 0 statement then the program gets loaded successfully. Any suggestions?

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

1 participant