News [LWN.net] [$] Verifier-state pruning in BPF

News

LinuxBot

Member
Joined
Apr 25, 2017
Messages
5,744
Reaction score
74
Credits
-1,257
The BPF verifier works, on a theoretical level, by considering every possible path that a BPF program could take. As a practical matter, however, it needs to do that in a reasonable amount of time. At the 2025 Linux Plumbers Conference, Mahé Tardy and Paul Chaignon gave a detailed explanation (slides; video) of the main mechanism that it uses to accomplish that: state pruning. They focused on two optimizations that help reduce the number of paths the verifier needs to check, and discussed some of the complications the optimizations introduced to the verifier's code.

Source: https://lwn.net/Articles/1050779/

Aggregated via Linux News
 


Follow Linux.org

Staff online

Members online


Top