~/talk

BPF Memory Model Two Years On

links:none on file
slides:none on file

A concrete BPF memory model is proposed that honors dependencies and maps BPF instructions to specific ordering guarantees: exchange/compare-exchange = full ordering, add/or/xor (no fetch) = unordered, fetch variants = full ordering. JITs and compilers must either emit matching branches and loads, insert lightweight ordering via a dummy atomic (bpmb), or explicitly preserve address/control/data dependencies; experiments use GCC/clang builtins on Godbolt and show expected behavior but some backends lack support. Future work considers acquire/release loads/stores and formal verification tooling.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:28BPF instruction set memory model
  3. 9:03Atomic instructions ordering
  4. 12:18Conditional jumps and control dependencies
  5. 21:50Load instructions and address dependencies
  6. 23:56JIT strategies for memory ordering
  7. 28:10Loads and stores implementation
  8. 30:56Future work and expansions
~/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.