~/talk

Deep Dive Into Linux Kernel Livepatch

links:none on file
slides:none on file

Explains that kernel livepatching redirects execution with ftrace code redirection and compares three implementations: kpatch (stop-the-world stack-scan), kgraft (per-task trampoline), and mainline livepatch (hybrid, livepatch in mainline since 4.0). Demonstrates building a patch for Linux 5.4 using kpatch-build diff-and-compile which compiles unstripped kernels, generates ELF relocation sections, produces a module, and insmod installs it; rdmesg shows the meminfo fix applied. Notes limits: only small isolated functions, cannot safely change data structures, and requires debug symbols and extensive testing.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:01Understanding live patching
  3. 3:40Code redirection with ftrace
  4. 4:34K-patch consistency models
  5. 6:37K-graph and trampoline usage
  6. 10:10Mainline live patch features
  7. 12:06Driver structure and building
  8. 15:18ELF sections and requirements
  9. 18:25K-patch build and workflow
  10. 26:27Limitations and conclusion
~/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.