~/talk

Rust in the Kernel (via eBPF)

Talkat Linux Plumbers Conference 2022 · 2022-09-12..09-14· [rust]
links:none on file
links:none on file
slides:none on file

A Rust eBPF toolchain is already usable: Aya plus a custom BPF Linker compiles Rust crates to a single eBPF object, shares a common crate between userland and kernel programs, and pushes logs to userspace via ring buffers; projects at Deepfence, Parca and Red Hat use it in production. It requires Rust nightly for the bpf target, lacks BTF/atomics/spinlock support so some APIs remain unsafe, and developers report successful builds but ongoing BTF issues and verifier edge cases.

AI-written summary · about

  1. 0:00Introduction
  2. 1:32How eBPF is eating the kernel
  3. 3:12How eBPF is compiled
  4. 4:56Rust compilation
  5. 5:46eBPF Linker
  6. 7:33eBPF Input
  7. 8:26eBPF Ecosystem
  8. 12:30eBPF in Rust
  9. 13:55Error handling
  10. 14:55Common crate
  11. 16:39Build dependencies
  12. 17:49eBPF templates
  13. 18:59Kernel space
  14. 20:29BTF
  15. 23:51Kernel types
  16. 24:53Question time
  17. 25:56Example code
  18. 29:51Safety documentation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.