~/talk

When the Kernel Writes Its Own Code: Debugging Runtime-Generated...

links:none on file
slides:none on file

Shows how to debug runtime‑generated kernel code (eBPF JIT, ftrace/kprobe trampolines) by adapting GDB and running the kernel under QEMU so the emulator acts as a vmlinux+QEMU debug server. Demonstrates concrete tools: custom GDB scripts (example: dump_kasan_shadow), TUI layouts and Python panes, and a breakpoint hook that captures the JITed x86 buffer for a named BPF program. The demo eventually catches and single‑steps the generated instructions, proving the approach works end to end.

AI-written summary · about

  1. 0:00Introduction to kernel debugging
  2. 3:50Debugging kernel basics
  3. 6:17Setting up QEMU for debugging
  4. 9:49Live demo of GDB with QEMU
  5. 13:01Debugging KASAN shadow memory
  6. 20:46Enhancing GDB with frontends
  7. 25:00Debugging runtime-generated instructions
  8. 37:06Key takeaways and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.