Reputation: 1136
Since bounded loop are now allowed in ebpf programs https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=2589726d12a1b12eaaa93c7f1ea64287e383c7a5 does the verifier still check in the first pass if the program control flow is a Direct Acyclic Graph?
Upvotes: 5
Views: 951
Reputation: 13133
Yes, it still does, and rejects programs with back-edges in two cases:
env->allow_ptr_leaks
boolean indicates a privileged user.Upvotes: 5