~/talk

Introduction to eBPF Load-Acquire and Store-Release Instructions

Talkat Linux Plumbers Conference 2025 · 2025-12-11..12-13· [security]
name:Peilin Ye
links:none on file
slides:none on file

Adds two BPF_ATOMIC ops providing load-acquire and store-release semantics, available in LLVM 21+ and merged into mainline kernel with support for arm64, x86-64, riscv64 and ppc64. Instructions encode as stx atomic with immediate fields, accept 8/16/32/64 sizes, and subword loads zero-extend. Compiler needs -mcpu=v4 to emit V4 BPF, verifier rejects unaligned accesses and 64-bit acquires on 32-bit kernels, and JITs map to LDAR/LDAPR on arm64 (LDAR chosen) and plain aligned loads/stores on x86-64. -mcpu=auto probing is still limited.

AI-written summary · about

  1. 0:00Introduction to eBPF LA/STL
  2. 2:56Why load acquire and store release
  3. 9:40Memory model benefits on ARM64
  4. 10:00Encodings and usage in BPF
  5. 15:05Compilation to native instructions
  6. 20:49Kernel verifier and JIT details
  7. 24:05Potential future work
  8. 25:52Q&A session
~/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.