Module Error Injection with eBPF
summary
moderr is an eBPF-based error injector that uses libbpf to attach to annotated kernel functions and force specific errno returns, targeting the module-loading state machine and driver init paths. the standalone tool filters by function arguments (module name) and finds real bugs: it reproduces an init failure that exposed a memory leak and runs in CI. about 60 annotated functions across the tree use the allow_error_injection tag and moderr proves deterministic, low-intrusion fault testing.
AI-written summary · about
chapters (10)
- 0:00Introduction to error injection
- 1:28Fault injection frameworks overview
- 4:37Why error injection matters
- 8:11BPF error injection approach
- 10:18Introducing mod_error tool
- 13:09Use cases and benefits
- 16:01Tool upstreaming challenges
- 18:15Potential security applications
- 20:23Production and debugging limitations
- 22:09Q&A and audience feedback
related talks
33mAuto-instrumentation of Prometheus for RED Monitorin...
42mCommunity Driven Breakout Session: eBPF and Auto-Instrumentation
39meBPF BoF
43meBPF Superpowers for SRE
28mDeveloping Modern eBPF Applications
40mPanel Discussion: eBPF: A New Era in Cloud Infrastructure Tools
32meBPF: The Next Power Tool of SREs
31meBPF 101
