Wiki: How Kernel Programming Escaped the Kernel
For agents: Markdown version · Wiki index · Explore
- Speaker: Ori Shussman
- Event: Reversim Summit 2025
- Video: https://www.youtube.com/watch?v=3szsVuuMrFw
- Transcript: /transcripts/2025/06-3szsVuuMrFw.md
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: Performance, Networking, Debugging, Security
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker introduces eBPF, a kernel technology that allows running dynamic code safely without modifying the kernel itself. The talk explains how eBPF works under the hood, comparing its relation to the kernel to JavaScript’s relation to HTML. The speaker demonstrates various industrial use cases in networking, security, and observability, alongside practical scripting examples using eBPF trace. Ultimately, the audience learns how to leverage eBPF tools to gain deep server insights without recompiling code or restarting applications.
Key points
- 0:00 The speaker introduces eBPF as a low-level kernel technology that enables writing dynamic kernel code from user mode.
- 2:11 The core topics of the talk include the background of eBPF, industry use cases, technical internals, and scripting.
- 3:26 eBPF is often compared to JavaScript for HTML, acting as an event listener that brings programmability and dynamism to the kernel.
- 5:28 As cloud computing grew, network bottlenecks shifted to server ingress and egress, inspiring developers to move packet filtering into the kernel.
- 8:58 eBPF is primarily used across three domains: networking, security, and observability.
- 14:44 Technically, eBPF code is compiled to custom bytecode, verified for safety by the kernel, and JIT-compiled for execution.
- 21:13 Developers can use pre-existing tools from platforms like BCC or write custom scripts using eBPF trace.
Takeaways
- Use eBPF to monitor server performance, latency, and system calls without needing to modify application source code or restart services.
- Leverage existing eBPF open-source platforms and tools instead of writing complex raw BPF bytecode from scratch.
- Combine multiple kernel probes with shared state to trace complex operations like specific file writes linked to file descriptors.
Questions this talk answers
- How does eBPF execute safely inside the kernel without crashing the operating system?
- What are the main differences between using eBPF for observability compared to traditional application-level metrics?
- How can I start using eBPF for tracing and debugging without writing low-level C or bytecode?
Technologies
eBPF, JavaScript, HTML, CBPF, Android, Linux, X86, Arm
Tags
ebpf, kernel, low level, networking, observability, performance, security