~/talk

Generating BPF Verifier Friendly Code with Clang

links:none on file
slides:none on file

Describes concrete fixes and techniques to make Clang/LLVM emit code the kernel verifier accepts: backend passes that insert intrinsics, targeted LLVM patches to avoid problematic optimizations, and hand-workarounds like a barrier variable or inline asm; notes a 1 million instruction limit and a >10,000 LOC verifier that force lean verifier models (ternary scalar ranges, path-sensitive checks). Several LLVM patches land in the latest toolchain but backporting is hard, so work continues as an ongoing arms race between LLVM optimizations and verifier rules.

AI-written summary · about

  1. 0:00Introduction to BPF verifier issues
  2. 1:02BPF program workflow and verification
  3. 6:48Preventing verifier failures in code
  4. 10:45Real-world verifier failure examples
  5. 13:14Generating verifier-friendly code in LLVM
  6. 16:03Discussion on LLVM pass control
  7. 18:09Ongoing battle with LLVM changes
  8. 21:58Verifier rules and evolution
  9. 23:02Future of verifier-friendly coding
~/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.