From: "H. Peter Anvin" <hpa@zytor.com>
To: Greg KH <greg@kroah.com>
Cc: "Huang, Ying" <ying.huang@intel.com>,
akpm@linux-foundation.org, Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Andi Kleen <ak@suse.de>,
"Eric W. Biederman" <ebiederm@xmission.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH -mm -v2] x86 boot : export boot_params via sysfs
Date: Wed, 12 Dec 2007 11:05:45 -0800 [thread overview]
Message-ID: <47603109.6080909@zytor.com> (raw)
In-Reply-To: <20071212185935.GA5941@kroah.com>
Greg KH wrote:
>> This is a binary structure defined by protocol;
>
> What protocol? Is this a "standard" documented somewhere?
Yes, see Documentation/i386/* (although some of it is documented by
reference to include/asm-x86/boot_params.h).
>> in that way it's not significantly different from something passed
>> from the firmware (in fact, it might very well *be* passed from the
>> firmware.) We have in the past found platform bugs by looking at the
>> contents of the whole structure, e.g. to find that part of it has
>> been inappropriately clobbered.
>
> For debugging things, then just export it through debugfs.
Fair enough, however...
>> It is also in the form needed by e.g. kexec to operate.
>
> Does kexec need this today to work properly? Or is this something new?
I believe kexec currently tries to reconstitute it from what data is
available to it. This is incomplete, though, and has been flagged as a
problem for kexec.
> What userspace program is going to know the exact data format of this
> blob, and where is it going to know that format from? The kernel header
> files in sanitized form? Or something else?
It can pick it up from <asm/boot_params.h> (which is now
userspace-safe); or it can decode it itself. Programs like kexec can
pass through most of the data without examining it, this is the main
reason for having it as a blob.
-hpa
next prev parent reply other threads:[~2007-12-12 19:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-12 8:59 [PATCH -mm -v2] x86 boot : export boot_params via sysfs Huang, Ying
2007-12-12 17:46 ` Greg KH
2007-12-12 17:54 ` H. Peter Anvin
2007-12-12 18:59 ` Greg KH
2007-12-12 19:05 ` H. Peter Anvin [this message]
2007-12-12 22:21 ` Greg KH
2007-12-12 22:37 ` H. Peter Anvin
2007-12-12 22:43 ` Randy Dunlap
2007-12-12 23:08 ` Eric W. Biederman
2007-12-12 22:52 ` Eric W. Biederman
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=47603109.6080909@zytor.com \
--to=hpa@zytor.com \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=ebiederm@xmission.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=ying.huang@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox