Suse's kGraft looks to put live kernel patching back into Linux

Summary:Being able to patch a Linux kernel without a restart hit a brick wall when Oracle bought Ksplice in 2011, but Suse hopes to restore former glories with kGraft.

Suse has announced that it is developing kGraft, an open-source kernel patcher that will remove the need for restarting a Linux system updating the kernel.

KGraft is expected to have its first release in March, with Suse aiming to have the project eventually accepted into the kernel proper.

The source is to be licensed under both GPLv3 and GLPv2 — the parts of kGraft that interact with the GPLv2-licensed kernel will have GPLv2 licencing, with the parts that touch the GCC compiler using GPLv3.

"KGraft builds on technologies and ideas that are already present in the kernel: Ftrace and its mcount-based reserved space in function headers, the INT3/IPI-NMI patching also used in jumplabels, and RCU-like update of code that does not require stopping the kernel," wrote Vojtěch Pavlík, director of Suse Labs.

"A kGraft patch is a kernel module, and fully relies on the in-kernel module loader to link the new code with the kernel. Thanks to all that, the design can be nicely minimalistic."

The kGraft project is familiar ground for Linux, with Ksplice fulfilling the same niche at the turn of the decade.

Ksplice was eventually acquired by Oracle in 2011, after which open-source Ksplice releases soon stopped.

Oracle said in a letter to customers at the time: "The combination of Ksplice technology and Oracle Linux Premier Support is expected to be the only enterprise Linux provider that can offer zero downtime updates, and Oracle plans to make the Ksplice technology a standard feature of Oracle Linux Premier Support."

Should kGraft be accepted into the Linux kernel, Oracle's claims will hold far less water.

Topics: Security, Linux, Open Source

About

Chris started his journalistic adventure in 2006 as the Editor of Builder AU after originally joining CBS as a programmer. After a Canadian sojourn, he returned in 2011 as the Editor of TechRepublic Australia, and is now the Australian Editor of ZDNet.

Kick off your day with ZDNet's daily email newsletter. It's the freshest tech news and opinion, served hot. Get it.

Related Stories

The best of ZDNet, delivered

You have been successfully signed up. To sign up for more newsletters or to manage your account, visit the Newsletter Subscription Center.
Subscription failed.