Skip to content

What the verifier rejects

Step 6 of 9Trade-off
COMPLEXITY
1M insns
LOOPS
bounded
STACK
512 bytes
PARSING
constrained
  • syscall / bpf() load
  • verified native exec
  • kernel event / hook
Kernel Space & eBPF VM, step 6 of 9

Safety has a real cost: the verifier caps analysis at 1 million verified instructions, forbids unbounded loops, and rejects variable-offset packet reads that lack explicit bounds checks.

Complex protocol decoders—like nested ASN.1 or fragmented SCTP—fight the verifier. Modern kernels add bpf_loop() and iterators, yet deep parsing still belongs in user space.

Common verifier rejections

  • Missing null check after map lookup → rejected
  • Packet read without data + N <= data_end → rejected
  • Unbounded while loop or >512B local struct → rejected

Type to search…

↑↓ navigate↵ selectEsc close