All of lore.kernel.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Jeff Garzik <jgarzik@pobox.com>
Cc: landley@trommello.org,
	Guillaume Boissiere <boissiere@adiglobal.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Son of crunch time: the list v1.2.
Date: 22 Oct 2002 02:14:02 -0600	[thread overview]
Message-ID: <m1k7kaubzp.fsf@frodo.biederman.org> (raw)
In-Reply-To: <3DB4B1B9.4070303@pobox.com>

Jeff Garzik <jgarzik@pobox.com> writes:

> > 13) Kexec, luanch ELF format linux kernel from Linux (Eric W. Biederman)
> > http://lists.insecure.org/lists/linux-kernel/2002/Oct/6584.html
> 
> Useful, but at the same time not many people will use this I think.  It may need
> to live as a patch for a while, if not for a long while...

Hmm. 2+ years is not enough?

A couple of comments.

The limitation to the ELF file format is long gone, (so the summary is
incorrect).  sys_kexec can launch any random kernel, it just needs an
appropriate user space program that understands the format.  kexec
bzImage works, and I suspect kexec could even start booting windows
from the boot sector of a hard drive.

The code has been looked at, and discussed by the kmonte, and bootimg
authors, and the kexec interface has not been found to be a problem.
Except for tracking kernel interface changes the code really has not
needed to change in quite a long while.

The biggest challenge right now is to track down the strange and
mysterious failures caused by driver or BIOS bugs.  Kexec is
inherently open to a bug anywhere in the system causing it to fail.
The development work consists of writing code, and inventing
techniques to track down those mysterious failures.  Kernel debuggers
don't work when you don't have a running kernel. 

All of this is generic kernel stabilization work, and it sounds to me
like a good complement to the upcoming 2.5.x stabilization efforts.

A smallish user base may be a good argument against it.  But I unless
I have miscounted there are quite a few people playing with bootimg,
and kmonte, not to mention the earlier versions of kexec.  

To do things right sys_kexec needs access to call device_shutdown, and
the reboot notifier chain.  The latter is available only as a  static
variable in kernel/sys.c.  And neither of them are exported from the
kernel.  

Keeping sys_kexec out of the kernel seems to encourage half baked,
half debugged implementations that just work for their authors, and
are limited to what it is easy to do as a module.

Putting in the sys_kexec patch in the kernel will certainly discourage
hacks in the code, and encourage those last few strange mysterious
failures to be tracked.  Plus it will put pressure on driver
maintainers to fix various bugs in their code.  And the patch is
not very intrusive at all so I fail to see a downside except bloat.

Eric

  parent reply	other threads:[~2002-10-22  8:09 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-19  4:24 Linux v2.5.44 - and offline for a week Linus Torvalds
2002-10-19 12:41 ` Nicholas Wourms
2002-10-19 14:05   ` Russell King
2002-10-19 16:40     ` Nicolas Pitre
2002-10-20  1:58   ` Rik van Riel
2002-10-20 12:59     ` Roman Zippel
2002-10-21  3:51       ` 2.6: Shortlist of Missing Features Rusty Russell
2002-10-21  2:44         ` Rob Landley
2002-10-21  7:43           ` David S. Miller
2002-10-21  7:59             ` YOSHIFUJI Hideaki / 吉藤英明
     [not found]               ` <200210202207.21397.landley@trommello.org>
2002-10-21  8:14                 ` YOSHIFUJI Hideaki / 吉藤英明
2002-10-21 11:22           ` [STATUS 2.5] October 21, 2002 Guillaume Boissiere
2002-10-21 20:22             ` Rob Landley
2002-10-22 19:47               ` Andreas Dilger
2002-10-22 19:57                 ` Dave Jones
2002-10-22 20:18                   ` Andreas Dilger
2002-10-23  1:44                     ` Dave Jones
2002-10-22 20:33                   ` Alan Cox
2002-10-21 20:36             ` Son of crunch time: the list v1.2 Rob Landley
2002-10-22  1:54               ` Davide Libenzi
2002-10-22  2:02               ` Jeff Garzik
2002-10-21 21:42                 ` Rob Landley
2002-10-22  2:53                   ` Jeff Garzik
2002-10-22  2:58                     ` Arnaldo Carvalho de Melo
2002-10-22 17:32                     ` Nicholas Wourms
2002-10-22 17:40                       ` Christoph Hellwig
2002-10-22 17:48                         ` Nicholas Wourms
2002-10-22 18:25                           ` Alan Cox
2002-10-23 15:36                       ` Rob Landley
2002-10-22  3:20                   ` Robert Love
     [not found]                     ` <200210211900.42772.landley@trommello.org>
2002-10-22  5:04                       ` Robert Love
2002-10-22  9:40                         ` Jeff Garzik
2002-10-22  6:53                       ` george anzinger
2002-10-22  6:45                   ` george anzinger
     [not found]                     ` <200210221232.IAA03454@mc.com>
2002-10-22 19:24                       ` george anzinger
2002-10-22 10:15                   ` Matt D. Robinson
2002-10-22  2:13                 ` Martin J. Bligh
2002-10-22  3:01                 ` Karim Yaghmour
2002-10-22  8:14                 ` Eric W. Biederman [this message]
2002-10-22 12:54                 ` Christoph Hellwig
2002-10-23 10:28                 ` Vamsi Krishna S .
2002-10-23 16:03                   ` Rob Landley
2002-10-24  7:23                     ` Vamsi Krishna S .
2002-10-22  2:26           ` 2.6: Shortlist of Missing Features Rusty Russell
2002-10-22  5:21             ` David S. Miller
2002-10-21  4:04         ` David S. Miller
2002-10-21 12:39           ` Alan Cox
2002-10-21  4:07         ` Matt D. Robinson
2002-10-21  4:20         ` Skip Ford
2002-10-21 12:38         ` Alan Cox
2002-10-21 13:26           ` Roman Zippel
2002-10-22  3:42           ` Rusty Russell
2002-10-22  3:28             ` Bride of crunch time: list 1.3-ish (was Re: 2.6: Shortlist of Missing Features) Rob Landley
2002-10-20 22:49   ` Linux v2.5.44 - and offline for a week Rob Landley
2002-10-21 10:15     ` Olaf Dietsche
2002-10-21 13:11     ` Dave Jones
2002-10-21 17:55       ` Nicholas Wourms
  -- strict thread matches above, loose matches on Subject: below --
2002-10-22 17:49 Son of crunch time: the list v1.2 Nicholas Berry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1k7kaubzp.fsf@frodo.biederman.org \
    --to=ebiederm@xmission.com \
    --cc=boissiere@adiglobal.com \
    --cc=jgarzik@pobox.com \
    --cc=landley@trommello.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.