POPL 2027
Sun 10 - Sat 16 January 2027 Mexico City, Mexico

Every eBPF program loaded into the Linux kernel must first pass the eBPF verifier, an abstract interpreter inside the kernel that checks that the program is memory safe and that its control flow is bounded. To stay small and fast, the verifier tracks each register with intervals and tristate numbers (which record each bit as 0, 1, or unknown). These domains cannot relate one register to another, so the verifier rejects many safe programs. This tutorial shows how proof-carrying BPF programs allow the kernel to accept a richer class of safe programs without a complex analysis in the kernel.

We will demonstrate proof-carrying BPF and its accompanying in-kernel checker with a simple program, walk through the verifier and the kernel proof checker at every stage. We will see why the kernel’s default analysis fails for the demo program. We will understand the refutation proofs generated for the refinement condition whose unsatisfiability shows that the failed check is safe. We will understand the in-kernel checker that validates the proof.