Just drop the verifier
Just drop the verifier
Posted Apr 15, 2025 6:18 UTC (Tue) by epa (subscriber, #39769)Parent article: In search of a stable BPF verifier
Why does the BPF verifier have to live in the kernel at all? If you have root, and it’s not some locked-down Secure Boot system, then at any time you can build some C code and load it into the kernel as a module. There is no verification that the C code doesn’t have infinite loops or memory trampling. You run it at your own risk. So why can’t you load arbitrary BPF? Of course you’d probably want to verify it first, but that can be done in user space using the verifier of your choice.