~/talk

Overflowing the kernel stack with BPF

github:dcbw
links:none on file
links:none on file
slides:none on file

Demonstrates concrete exploits where eBPF code overflows the kernel stack by abusing verifier assumptions: the verifier assumes 8KB assumption of available stack, but attaching on bloated paths like XFS yields >6KB base stacks and kprobes can push total usage past 10KB; combining BPF-to-BPF frames with tail calls (the runtime limits to 33 tail calls are bypassed) grows a 512‑byte verifier view into ~8KB at runtime; nesting via kprobe+fentry nesting or helper-attached programs reproduces stack exhaustion; mitigation proposals include per-BPF stack switching or strict nesting/attachment limits.

AI-written summary · about

  1. 0:00Introduction to BPF
  2. 1:12BPF stack interaction
  3. 4:45Kernel stack assumptions
  4. 5:51Base kernel stack overflow
  5. 7:58Uncontrolled nesting issue
  6. 12:33Potential solutions
  7. 15:25Q&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.