All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ague Mill <ague@mailoo.org>
To: grub-devel@gnu.org
Subject: kexec GRUB, multiboot port and qemu
Date: Sun, 26 Aug 2012 23:30:20 +0000	[thread overview]
Message-ID: <20120826233020.GD4286@localhost> (raw)

[-- Attachment #1: Type: text/plain, Size: 1712 bytes --]

Hi!

As a developer working on Tails [1], a live distribution aimed at
protecting its users' privacy, I am trying to tackle one of our
long-standing issue: we need to properly overwrite the system memory
with zeros on shutdown in order to erase traces of the user activity.

Actually, after some long hours of hacking, it looks like GRUB could
be all what we needed to nail this issue. Have a look at the current
state of affairs [2] if you are interested in the details.

[1] https://tails.boum.org/
[2] https://tails.boum.org/bugs/sdmem_does_not_clear_all_memory/grub/


I am currently stuck on how to obtain a standalone GRUB image that could
be kexec'ed from Linux.

When building an ELF image with the 'pc' port, kexec replies:

    Base address: 8200 is not page aligned

The next candidate looked like the 'multiboot' port. But I can't get an
image that will work in qemu. I have tried to build a strictly minimal
boot image using the following commands:

    ./configure --with-platform=multiboot --target=i386
    make -j4
    ./grub-mkimage -O i386-multiboot -C xz -d ./grub-core \
        -o /tmp/multiboot.img

Here is how I start qemu after:

    qemu -kernel /tmp/multiboot.img -vga std -m 256

And I get the following error:

    Missing Multiboot memory information
    Aborted.


Is there any known working way to test multiboot images?
Is there a better path to be able to use kexec to load and execute GRUB?


I would very much like to offer the `wipe_memory` command for inclusion
in GRUB (and do the necessary refinements on the patch) once we have
something that works from one end to the other for Tails.

Thanks for your help,
-- 
Ague

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

             reply	other threads:[~2012-08-26 23:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-26 23:30 Ague Mill [this message]
2012-09-05  5:45 ` kexec GRUB, multiboot port and qemu Vladimir 'φ-coder/phcoder' Serbinenko
2012-09-05 14:37   ` Ague Mill

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=20120826233020.GD4286@localhost \
    --to=ague@mailoo.org \
    --cc=grub-devel@gnu.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.