|
|
Log in / Subscribe / Register

Cleaning up after BPF exceptions

Cleaning up after BPF exceptions

Posted Apr 16, 2024 4:58 UTC (Tue) by rywang014 (guest, #167182)
Parent article: Cleaning up after BPF exceptions

I am not familiar with BPF - sounds like this exception is exactly what `bpf_exit` should do. If a BPF program is still holding resources, does the verifier allow it to call `bpf_exit`? If so, who is in charge of releasing the resources?


to post comments

Cleaning up after BPF exceptions

Posted Apr 16, 2024 7:42 UTC (Tue) by Cyberax (✭ supporter ✭, #52523) [Link]

BPF throw might be executed by a helper, so the verifier will have no insight into it.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds