Kbuild support for klprelocation generation
summary
Kernel build adds a small utility that rewrites livepatch ELF relocations into the loader’s required format and currently implements only the annotation path: it generates klp relocation sections with klp-convert macros, emits reloc entries that include object name and symbol index, and runs after modpost so unresolved symbols are tolerated. A minimal prototype exists and works in tests, but upstream questions remain about Kbuild integration, the klp-version automatic resolver, and whether modpost changes are acceptable.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:50KP relocation basics
- 6:54KP convert tool history
- 10:31Self-testing KP relocations
- 17:14Live patching performance impact
- 21:07KP convert in Kbuild
- 23:57Minimal KP convert changes
- 25:02Late module patching limits
- 27:35Compiler and obj tool issues
related talks
33mLinux Kernel Live Patching
20mDistributed ThinLTO Build Support in Kbuild
28mHyperscale Kernel Live Patching at Meta
24mContinuously Integrating the Upstream Linux Kernel on Hardware
51mPly: Lightweight BPF Tracing
45mRe-Thinking Spec Files
37mKernel and userspace tracing with LTTng and friends
21mThe emerging of the virtual QA team for Linux kernel
