public inbox for kexec@lists.infradead.org
 help / color / mirror / Atom feed
* Saveoops: Making Kexec purgatory position-independent?
@ 2011-02-26 16:20 Ahmed S. Darwish
  2011-02-26 21:38 ` H. Peter Anvin
  0 siblings, 1 reply; 10+ messages in thread
From: Ahmed S. Darwish @ 2011-02-26 16:20 UTC (permalink / raw)
  To: Eric W. Biederman, Simon Horman, Vivek Goyal, Haren Myneni
  Cc: Ingo Molnar, X86-ML, KEXEC-ML, H. Peter Anvin

Hi,

I'm continuing work on 'Saveoops', saving both early and normal Linux
oops log to disk upon panic [*], using Kexec and bootloaders this time.

Purgatory, the transitional mini-kernel used by kexec, is a relocatable
ELF file. Userspace kexec-tools finds the final load address of such
code (by parsing /proc/iomem, etc) and then applies the relocations
itself before passing the now-ready executable image to kernel.

Since capturing early oopses is the major goal, doing such relocation
in userspace won't fit my purposes. Two options remain:
   - relocate purgatory entries in the kernel early boot path
   - or compile purgatory as position-independent, thus simplifying
     the kernel load logic

The former will add extra logic in a sensitive path (early boot), while
the latter will require changes inside the purgatory code itself,
especially i386 assembly files.

Any preferable option from our kexec and x86 maintainers?

thanks!

[*] http://news.gmane.org/find-root.php?message_id=<20110125134748.GA10051@laptop>
    http://news.gmane.org/find-root.php?message_id=<20110126124954.GC24527@laptop>

-- 
Darwish
http://darwish.07.googlepages.com

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

end of thread, other threads:[~2011-02-28  1:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-26 16:20 Saveoops: Making Kexec purgatory position-independent? Ahmed S. Darwish
2011-02-26 21:38 ` H. Peter Anvin
2011-02-27  0:57   ` Eric W. Biederman
2011-02-27  1:15     ` H. Peter Anvin
2011-02-27 13:24     ` Ahmed S. Darwish
2011-02-27 14:16       ` Vivek Goyal
2011-02-27 15:43         ` Ahmed S. Darwish
2011-02-27 18:32       ` Eric W. Biederman
2011-02-28  1:38     ` Simon Horman
2011-02-28  1:39     ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox