See also: Linux kernel § Live patching
KernelCare agent resides on user's server. It periodically checks in with KernelCare distribution servers. If there are new patches available for the currently running kernel, KernelCare agent downloads and applies those patches to the running kernel.
A KernelCare patch is a piece of code used to substitute vulnerable or buggy code in a kernel. It can be an arbitrary code line modification, or it can be a missing security check, a set of functions, or even modified data structures.3 The patch is compiled as usual, but the generated code has additional information about all changed code pieces caused by original source code modification and information on to how to apply these code pieces. The resulting code modifications are safely applied to the running kernel.
A special KernelCare kernel module applies the patches. It loads the patches into the kernel address space, sets up the relocations (i.e., fixes the references to the original kernel code and data), and safely switches the execution path from the original code to updated code blocks. The code ensures the patch is applied safely so the CPU doesn't execute the original code blocks at the same moment when switching to a new version.45
"KernelCare Promises Linux Security Updates Without the Reboots". The Var Guy. Archived from the original on 14 September 2016. Retrieved 29 August 2015. https://web.archive.org/web/20160914232344/http://thevarguy.com/open-source-application-software-companies/050614/embargo-may-6-1201-am-est-kernelcare-promises-linux-secur ↩
"KernelCare: New no-reboot Linux patching system". ZDNet. Retrieved 29 August 2015. https://www.zdnet.com/article/kernelcare-new-no-reboot-linux-patching-system/ ↩
"CloudLinux Launches KuberDock Public Beta". Archived from the original on 17 August 2016. Retrieved 29 August 2015. https://web.archive.org/web/20160817073351/http://www.thehostingnews.com/cloudlinux-launches-kuberdock-public-beta.html ↩
"KernelCare verspricht Patches ohne Neustart". Pro-Linux. Retrieved 29 August 2015. http://www.pro-linux.de/news/1/21062/kernelcare-verspricht-patches-ohne-neustart.html ↩