SUSE Will Mainline Their kGraft Live Kernel Patching

Written by Michael Larabel in Linux Kernel on 28 March 2014 at 02:13 PM EDT. Add A Comment
LINUX KERNEL
SUSE engineers will attempt to merge their kGraft live kernel patching mechanism into the mainline Linux kernel.

Back in February kGraft was announced as a research project out of SUSE Labs for live patching a running Linux kernel in a different way than the well known Ksplice alternative for live Linux kernel patching. As I wrote yesterday, SUSE released the source code to kGraft to coincide with the Linux Foundation Collaboration Summit in Napa and the talk they gave there on this new technology.

Vojtěch Pavlík of SUSE was the speaker to share more with kernel developers about kGraft. Those interested in live patching the kernel can find the PDF slides available with all of the details. Some of the key notes from this summit presentation include:

- The advertised benefits of kGraft over other live kernel patching solutions include the kernel not ever needing to be stopped during the patching process, kGraft patch sources can undergo code review, and kGraft is lean. The kGraft source code is small due to leveraging other parts of the Linux kernel.

- A kGraft patch ends up being a .ko kernel module in a KMP RPM that replaces whole functions within the Linux kernel. New RPMs/modules can replace existing kGraft patches.

- kGraft is only designed to fix critical and simple bugs.

- Any changes requiring kernel data structure layout changes require special attention.

- kGraft depends on a stable build environment.

- SUSE developers wil submit kGraft for inclusion into Linus's upstream Linux kernel.

- SUSE intends to work together with the community and other developers to make a common standard for live kernel patching.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week