Skip to contentSkip to conversation

A system for rebootless kernel security updates

DISCUSSION Tomasz Chmielewski 9 participants 9 messages Apr 24, 2008 – Apr 29, 2008

lore
Share & tools
lore
#0 lore raw
Quoted 1 line · Jeff Arnold

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 ;)

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#1 lore raw
Quoted 5 lines

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 ;)

The basic patching idea is old and has been used many times, long predating kexec. e.g. it's a common way to implement incremental linkers too.

-Andi

#2 lore raw
In reply to Tomasz Chmielewski
Quoted 8 lines · Tomasz Chmielewski
Quoted 5 lines · Jeff Arnold

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.

Quoted 7 lines

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").

...so US will not be able to fix security holes without reboot, good. Perhaps they fix their stupid laws after next worm outbreak...

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#3 lore raw

----- Original Message -----
From: "Pavel Machek" <[email protected]>
To: "Tomasz Chmielewski" <[email protected]>
Cc: "LKML" <[email protected]>; <[email protected]>; <[email protected]>; "Andi Kleen" <[email protected]>; <[email protected]>
Sent: Sunday, April 27, 2008 12:17 PM
Subject: Re: A system for rebootless kernel security updates

Quoted 12 lines · Tomasz Chmielewski
Quoted 11 lines
Quoted 5 lines · Jeff Arnold

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:

Quoted 8 lines
Quoted 4 lines

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

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

...so US will not be able to fix security holes without reboot, good. Perhaps they fix their stupid laws after next worm outbreak...

I have hot-patched on PDP-11 without reboot over the phone line many years before Microsoft patent.
In the time of MS patent, the machines I care were no more running.

Just another stupid patent.

Gilles

#4 lore raw
In reply to Pavel Machek
Quoted 12 lines · Pavel Machek
Quoted 11 lines · Tomasz Chmielewski
Quoted 5 lines · Jeff Arnold

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:

Quoted 7 lines
Quoted 4 lines

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

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

...so US will not be able to fix security holes without reboot, good. Perhaps they fix their stupid laws after next worm outbreak...

Sounds like a bullshit patent. I remember having loaded a lot of NLM patches under netware 4.0 in 96-97 without ever rebooting. I think that the patches only redefined the faulty symbol(s) they wanted to patch. That was pretty convenient because when in doubt, you could simply unload the modules and get back to previous situation.

Quoted 1 line

Pavel

Willy

#5 lore raw

and if i good know, the macos make too the kernel updates

Quoted 37 lines · Willy Tarreau
Quoted 12 lines · Pavel Machek
Quoted 11 lines · Tomasz Chmielewski
Quoted 5 lines · Jeff Arnold

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:

Quoted 7 lines
Quoted 4 lines

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

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

...so US will not be able to fix security holes without reboot, good. Perhaps they fix their stupid laws after next worm outbreak...

Sounds like a bullshit patent. I remember having loaded a lot of NLM patches under netware 4.0 in 96-97 without ever rebooting. I think that the patches only redefined the faulty symbol(s) they wanted to patch. That was pretty convenient because when in doubt, you could simply unload the modules and get back to previous situation.

Quoted 1 line

Pavel

Willy

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 2 lines
Thanks,
Oliver
#6 lore raw
In reply to Willy Tarreau

2008/4/27 Willy Tarreau <[email protected]>:

Quoted 18 lines · Pavel Machek
Quoted 17 lines · Tomasz Chmielewski
Quoted 15 lines
Quoted 5 lines · Jeff Arnold

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").

Quoted 9 lines
Quoted 2 lines

...so US will not be able to fix security holes without reboot, good. Perhaps they fix their stupid laws after next worm outbreak...

Sounds like a bullshit patent. I remember having loaded a lot of NLM patches under netware 4.0 in 96-97 without ever rebooting. I think that the patches only redefined the faulty symbol(s) they wanted to patch. That was pretty convenient because when in doubt, you could simply unload the modules and get back to previous situation.

And then there's 'alternatives' that patch running code, there's kexec and I guess you could even say that various root kits that patch the running kernel get prior art on that patent ;)

Signature · 3 lines
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
#7 lore raw
In reply to Tomasz Chmielewski
Quoted 4 lines · Tomasz Chmielewski
Quoted 1 line · Jeff Arnold

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.

Quoted 9 lines

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 ;)

I think you will find prior art all the way back to the PDP-8 (or 11) and if memory serves DTSS, which was in the 1960's. I think MULTICS allowed that as well, by patching the library dispatch table (sort of like TLB) to map a virtual address of the entry point to a new location.

All of which doesn't matter, of course, because no one has the money to challenge MSFT, and it would be in court until the heat death of the universe anyway.

Signature · 3 lines
Bill Davidsen <[email protected]>
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot
#8 lore raw
In reply to Tomasz Chmielewski
Quoted 1 line

i.e. this patent from December 2002

That's a patent application, not a patent. That application has received a "final rejection" from the U.S. patent office (Microsoft is appealing, but so far their attempts at arguing the merits of the application have not been successful). You can browse the relevant documents at

http://portal.uspto.gov/external/portal/pair

(The application number is 10/307,902).

Jeff Arnold
[email protected]