r/embedded • • 3d ago

about using ebpf in real projects

I wonder if anyone has used eBPF tools to solve real problems in embedded projects, like memory leaks, and what went down?

1 Upvotes

2 comments sorted by

1

u/ventZl CMRX RTOS 3d ago

I've been considering it but in the end I rejected it.

The use case was user-supplied ISR handler code which would run in kernel context of otherwise completely memory isolated environment. ISR handlers are the only portion of code that cannot be reasonably isolated.

So the idea was to use eBPF as "isolation layer".

In the end I rejected it completely.

1

u/GourmetWordSalad 1d ago

Cisco had a talk a while back when they use eBPF to shutdown features that has a CVE before a real fix can be delivered.
Yes it is as gobsmackingly dumb as it sounds. Google shows me that the thing is called Hypershield.

Profoundly stupid or not, it was real and it paid the bills for the employees, so it's a valid answer to your question "in real projects".