~/talk

pt_regs - the good the bad and the ugly

slides:none on file

A history of struct pt_regs shows ptrace → kprobe → kretprobe → ftrace → fprobe → uprobe → redhook → eBPF → perf and a recurring problem: many users propagate sparse pt_regs (trampolines or wrappers that omit fields). ARM64 cannot supply PSTATE except at exception entry, so copying or inventing it (Fprobe making a PT_REGS from Ftrace) produces subtle corrupted state. A pragmatic fix is already deployed: the Ftrace regs wrapper exposes only needed fields with safe accessors; avoid spreading full PT_REGS from trampolines.

AI-written summary · about

  1. 0:00Introduction
  2. 0:21History of pt_regs
  3. 7:03Problems with pt_regs
  4. 12:44Recommendations and future
  5. 19:04Q&A
~/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.