~/talk

BPF Static Keys

Talkat Linux Plumbers Conference 2023 · 2023-11-13..11-15· [security]
links:none on file
slides:none on file

Adds a BPF Static Keys API that compiles helpers into asm goto-generated NOP/JUMP patches and registers a list of patch points so user space can toggle branches by writing 0/1 into a map of size one. Kernel receives patch instruction offsets, jump targets and map pointers, applies per-branch replacement (NOP ↔ JUMP) for enabled/disabled behavior, refuses normal BPF access to those maps, and supports C and Go loaders and shared keys across programs for low-latency (ms–s) tracing toggles without recompiling.

AI-written summary · about

  1. 0:00Introduction to BPF static keys
  2. 1:04Static key interface in kernel
  3. 4:06Extending BPF API for static branches
  4. 10:38Program loading and verification
  5. 13:08Impact on JIT generated code
  6. 17:25Runtime static key changes
  7. 20:14Atomic updates and verification
  8. 22:03Performance and use cases
  9. 23:50Why not automate static keys
  10. 26:01Q&A
~/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.