Oddbean new post about | logout
 [$] Cleaning up after BPF exceptions


Kumar Kartikeya Dwivedi has been working to add support for exceptions to BPF
since mid-2023. In July, Dwivedi posted
<a href="https://lwn.net/Articles/938435/" rel="nofollow">
the first patch set</a> in this effort, which adds support for basic stack unwinding.
In February 2024, he posted
<a href="https://lwn.net/ml/bpf/20240201042109.1150490-1-memxor@gmail.com/" rel="nofollow">
the second patch set</a>
aimed at letting the kernel release resources held by the BPF program when an
exception occurs. This makes exceptions usable in many more contexts.


https://lwn.net/Articles/969185/