~/talk

Deep Dive Into Linux Kernel Livepatch

Talkat LinuxCon Europe 2022 · 2022-09-13..09-16· [linux-and-operating-systems]
links:none on file
slides:none on file

Explains how Linux livepatch replaces a buggy function at runtime by compiling a fixed function into a module and using ftrace nop->call redirection to reroute calls, with a clear consistency tradeoff: Kpatch stops and inspects stacks, KGraft migrates tasks one-by-one, Mainline uses exit‑migration hybrid. Describes kpatch-build’s workflow of building patched vs original binaries, producing a module with kpatch-build diffs + .klp.rela ELF sections to resolve local symbols, and demos a working patch that sums kernel allocations shown after insmod: demo: meminfo sum of kernel allocs inserted via insmod.

AI-written summary · about

  1. 0:00Start
  2. 1:02What is kernel Livepatch?
  3. 2:34Why do we need Livepatch?
  4. 4:37Code redirection with Ftrace
  5. 13:44Livepatch(Mainline Linux)
  6. 22:09Limitations of driver structure approach
  7. 23:21Need of ELF sections
  8. 36:05Livepatch limitations
~/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.