KLP for Clang LTO Kernel
summary
Clang LTO live patching runs on top of kpatch by comparing linker-produced pre-link objects instead of the full vmlinux, using clang’s lto object-pass dump to dumped ~2000 internal .o files and then running objtool and the usual diff flow; linking vmlinux.o directly takes >10 hours for vmlinux.o so the dump trick makes patch generation feasible. LTO adds special symbols and duplicated comment sections that kpatch must ignore; PG is in production 2+ years, LTO rollout hits ~50k nodes and sampled-LBR PGO so far underperforms instrumentation.
AI-written summary · about
chapters (6)
- 0:00Introduction to KLP with Clang LTO
- 2:55LTO workflow and KP integration
- 7:17KP changes for LTO and PGO support
- 12:47IBT challenges with live patching
- 18:17Future of KP and alternatives
- 20:45Q&A and next steps
related talks
20mDistributed ThinLTO Build Support in Kbuild
33mLinux Kernel Live Patching
28mHyperscale Kernel Live Patching at Meta
37mKernel and userspace tracing with LTTng and friends
24mContinuously Integrating the Upstream Linux Kernel on Hardware
39mThe End of the Paved Road: Maintaining Linux Kernel 4.4 Beyond LTS
17mAdvancing Performance via a Systematic Application of Research and Industrial Best(…)
20mUsing Yocto as a Method to Upstream, Maintain, and Track Patches
