linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: A system for rebootless kernel security updates
@ 2008-04-24 14:26 Tomasz Chmielewski
  2008-04-24 14:42 ` Andi Kleen
                   ` (3 more replies)
  0 siblings, 4 replies; 23+ messages in thread
From: Tomasz Chmielewski @ 2008-04-24 14:26 UTC (permalink / raw)
  To: LKML, jbarnold, francois.cami, Andi Kleen, mail

Jeff Arnold wrote:

> I've put together an automatic system for applying kernel security patches 
> to the Linux kernel without rebooting it, and I wanted to share this 
> system with the community in case others find it useful or interesting.

Hmm, the idea seem to be patented by Microsoft, i.e. this patent from 
December 2002:

http://www.google.com/patents?id=cVyWAAAAEBAJ&dq=hotpatching

(and other patents by Microsoft if you search for "hotpatching").


And those patent descriptions, by the way, remind the way kexec works 
("A software module is hotpatched by loading a patch into memory and 
modifying an instruction in the original module to jump to the patch"), 
which was released much earlier... In essence, they patented kexec ;)


-- 
Tomasz Chmielewski
http://wpkg.org

^ permalink raw reply	[flat|nested] 23+ messages in thread
* A system for rebootless kernel security updates
@ 2008-04-23 18:59 Jeff Arnold
  2008-04-23 21:37 ` FD Cami
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Jeff Arnold @ 2008-04-23 18:59 UTC (permalink / raw)
  To: linux-kernel

Hello,

I've put together an automatic system for applying kernel security patches 
to the Linux kernel without rebooting it, and I wanted to share this 
system with the community in case others find it useful or interesting.

Here's the summary:  The system takes as input a kernel security patch 
(which can be a unified diff taken directly from Linus' GIT tree) and the 
source code corresponding to the running kernel, and it automatically 
creates a set of kernel modules to perform the update.  The running kernel 
does not need to have been customized in advance in any way.  To be fully 
automatic, the system cannot be used to apply patches that introduce 
semantic changes to data structures, but most Linux kernel security 
patches don't make these kinds of changes.  I've evaluated the system 
against various kernel versions and security vulnerabilities, and the 
system can automatically apply 84% of the significant kernel security 
patches from May 2005 through December 2007.

I've been pursuing this project because I don't like dealing with reboots 
whenever a new local kernel security vulnerability is discovered.  The 
rebootless update practices/systems that are already out there require 
manually constructing an update (through a process that can be tricky and 
error-prone), and they tend to have other disadvantages as well (such as 
requiring a custom kernel, not handling inline functions properly, etc). 
This new system works on existing kernels, and it simply takes a unified 
diff as input and does the rest on its own.

The system's website is http://web.mit.edu/ksplice.

The GIT repository, code tarball, and binary tarballs are available here:
http://web.mit.edu/ksplice/ksplice.git
http://web.mit.edu/ksplice/dist/ksplice-src.tar.gz
http://web.mit.edu/ksplice/dist/ksplice-bin-i386.tar.gz
http://web.mit.edu/ksplice/dist/ksplice-bin-x86_64.tar.gz

A document describing how the system works is available here: 
http://web.mit.edu/ksplice/doc/ksplice.pdf

Any feedback would be appreciated.

Jeff Arnold
jbarnold@mit.edu

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2008-05-01 13:37 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-24 14:26 A system for rebootless kernel security updates Tomasz Chmielewski
2008-04-24 14:42 ` Andi Kleen
2008-04-27 10:17 ` Pavel Machek
2008-04-27 17:00   ` Gilles Espinasse
2008-04-27 17:49   ` Willy Tarreau
2008-04-27 19:51     ` Oliver Pinter
2008-04-27 19:58     ` Jesper Juhl
2008-04-28 19:07 ` Bill Davidsen
2008-04-29 23:39 ` Jeff Arnold
  -- strict thread matches above, loose matches on Subject: below --
2008-04-23 18:59 Jeff Arnold
2008-04-23 21:37 ` FD Cami
2008-04-24 13:42 ` Andi Kleen
2008-04-28  6:18   ` Jeff Arnold
2008-04-28 10:29     ` Andi Kleen
2008-04-29  6:55       ` Jeff Arnold
2008-04-29 12:57         ` Dan Noe
2008-04-29 22:43           ` Jeff Arnold
2008-05-01 11:38         ` Enrico Weigelt
2008-05-01 13:35           ` David Collier-Brown
2008-04-24 13:43 ` Christian Hesse
2008-04-24 18:13   ` Jeff Arnold
2008-04-24 19:16     ` Christian Hesse
2008-04-28  6:11       ` Jeff Arnold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).