~/talk

Kernel Live Patching at Scale

Talkat Linux Plumbers Conference 2022 · 2022-09-12..09-14· [security]
name:Song Liu
links:none on file
links:none on file
slides:none on file

Facebook uses kernel live patching (KLP) with ftrace IP-modify to push cumulative fixes as RPMs across millions of servers, rolling a new cumulative KLP module in about a week (whole fleet possible in hours). Typical KLP modules are under ~1 MB and replace tens of functions (rarely >100). Known issues: KLP causes transition failures 10–100x in edge cases (long-running workqueue tasks, tracing conflicts); fixes include adding cond_resched and upstream patches.

AI-written summary · about

  1. 0:00Introduction and team
  2. 0:43Kernel fixes and reboots
  3. 3:10What is live patching
  4. 6:59Live patching ecosystem
  5. 8:07Why use live patching at scale
  6. 10:14Enforcing homogeneous configuration
  7. 13:04Results and benefits of live patching
  8. 15:12Bugs and issues encountered
  9. 16:12Bug: missed I/O and TCP retransmits
  10. 18:40Live patching and tracing tools
  11. 22:12Live patch transition failures
  12. 25:23Ongoing and future work
  13. 27:50Toolchain improvements
  14. 29:36Q&A: Assembly file live patching
  15. 32:52Q&A: Live patch module size
  16. 35:18Q&A: Link time optimizations
  17. 36:41Q&A: Functions per live patch
  18. 38:51Q&A: Kernel version support
  19. 39:52Q&A: Services affected by PGO
~/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.