From: Vivek Goyal <vgoyal@redhat.com>
To: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
"linux-man@vger.kernel.org" <linux-man@vger.kernel.org>,
kexec@lists.infradead.org, Andy Lutomirski <luto@amacapital.net>,
Dave Young <dyoung@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
Borislav Petkov <bp@alien8.de>,
"Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: Edited kexec_load(2) [kexec_file_load()] man page for review
Date: Wed, 28 Jan 2015 09:48:03 -0500 [thread overview]
Message-ID: <20150128144803.GC15342@redhat.com> (raw)
In-Reply-To: <54C89816.8030709@gmail.com>
On Wed, Jan 28, 2015 at 09:04:38AM +0100, Michael Kerrisk (man-pages) wrote:
Hi Michael,
[..]
> >> * the number of bytes copied from userspace is min(bufsz, memsz)
> >
> > Yes. bufsz can not be more than memsz. There is a check to validate
> > this in kernel.
> >
> > result = -EINVAL;
> > for (i = 0; i < nr_segments; i++) {
> > if (image->segment[i].bufsz > image->segment[i].memsz)
> > return result;
> > }
>
> Okay. So it's more precise to leave discussion of min(bufz, memsz)
> out of the man page just to say: bufsz bytes are transferred;
> if bufsz < memsz, then the excess bytes in the target region are
> filled with zeros. Right?
Sounds good.
[..]
> > Both mem and memsz need to be page aligned.
>
> And the error if not is EADDRNOTAVAIL, right?
Yes.
>
> >> And one further question. Other than the fact that they are used with
> >> different system calls, what is the difference between KEXEC_ON_CRASH
> >> and KEXEC_FILE_ON_CRASH?
> >
> > Right now I can't think of any other difference. They both tell respective
> > system call that this kernel needs to be loaded in reserved memory region
> > for crash kernel.
>
> Okay.
>
> I've made various adjustments to the page in the light of your comments
> above. Thanks!
Thank you for following it up and improving kexec man page.
Thanks
Vivek
next prev parent reply other threads:[~2015-01-28 20:54 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-09 19:17 Edited kexec_load(2) [kexec_file_load()] man page for review Michael Kerrisk (man-pages)
2014-11-11 21:30 ` Vivek Goyal
2015-01-07 21:17 ` Michael Kerrisk (man-pages)
2015-01-12 22:16 ` Vivek Goyal
2015-01-16 13:30 ` Michael Kerrisk (man-pages)
2015-01-27 8:07 ` Michael Kerrisk (man-pages)
2015-01-27 14:24 ` Vivek Goyal
2015-01-28 8:04 ` Michael Kerrisk (man-pages)
2015-01-28 14:48 ` Vivek Goyal [this message]
2015-01-28 15:49 ` Michael Kerrisk (man-pages)
2015-01-28 20:34 ` Vivek Goyal
2015-01-28 21:14 ` Scot Doyle
2015-01-28 21:31 ` Vivek Goyal
2015-01-28 22:10 ` Scot Doyle
2015-01-28 22:25 ` Vivek Goyal
2015-01-29 1:27 ` Scot Doyle
2015-01-29 5:39 ` Michael Kerrisk (man-pages)
2015-01-29 16:06 ` Scot Doyle
2015-01-30 15:25 ` Michael Kerrisk (man-pages)
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=20150128144803.GC15342@redhat.com \
--to=vgoyal@redhat.com \
--cc=bp@alien8.de \
--cc=dyoung@redhat.com \
--cc=ebiederm@xmission.com \
--cc=hpa@zytor.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-man@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=mtk.manpages@gmail.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;
as well as URLs for NNTP newsgroup(s).