Let's meet the kernel livepatch feature
summary
Kernel livepatching updates kernel functions at runtime by loading a kernel module that uses ftrace nop->call trick to reroute callers (it replaces a return address to jump into the patched function). Demonstrations on Ubuntu VM build modules for CVE-2021-2235 and another privilege escalation, load them, and the exploits stop working — so the patches work. Handling non-exported symbols requires ELF edits (adding klp symbols and relocation sections). Tools mentioned: Deco and kpatch available. Performance impact is small; ARM support remains lacking.
AI-written summary · about
chapters (7)
- 0:00Start
- 0:47What is a Kernel Livepatch
- 2:52How it works
- 6:22Prepare the patch
- 9:09Demo
- 14:30Example
- 17:54ELF Relocations
related talks
38mDeep Dive Into Linux Kernel Livepatch
29mDeep Dive Into Linux Kernel Livepatch
33mLinux Kernel Live Patching
18mKernel Live Patching: Mitigating CVEs With Zero Downtime
47mAdaptive Kernel Live Patching: An Open Collaborative Effort...
41mKernel Live Patching at Scale
41mLivepatch in Userspace Based on Uprobe
27mAdaptive Android Kernel Live Patching
