From: Vivek Goyal <vgoyal@in.ibm.com>
To: Morton Andrew Morton <akpm@osdl.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>,
Fastboot mailing list <fastboot@lists.osdl.org>,
linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: [PATCH] Kexec on panic vmlinux initrd fix
Date: Tue, 21 Jun 2005 14:52:23 +0530 [thread overview]
Message-ID: <20050621092223.GE3746@in.ibm.com> (raw)
Hi,
This is a minor bug fix in kexec to resolve the problem of loading panic
kernel with initrd.
Thanks
Vivek
o Problem: Loading a capture kenrel fails if initrd is also being loaded.
This has been observed for vmlinux image for kexec on panic case.
o This patch fixes the problem. In segment location and size verification
logic, minor correction has been done. Segment memory end (mend) should be
mstart + memsz - 1. This one byte offset was source of failure for initrd
loading which was being loaded at hole boundary.
Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
---
linux-2.6.12-mm1-vivek/kernel/kexec.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN kernel/kexec.c~kexec-on-panic-vmlinux-initrd-fix kernel/kexec.c
--- linux-2.6.12-mm1/kernel/kexec.c~kexec-on-panic-vmlinux-initrd-fix 2005-06-21 14:46:57.905192856 +0530
+++ linux-2.6.12-mm1-vivek/kernel/kexec.c 2005-06-21 14:46:57.914191488 +0530
@@ -279,7 +279,7 @@ static int kimage_crash_alloc(struct kim
unsigned long mstart, mend;
mstart = image->segment[i].mem;
- mend = mstart + image->segment[i].memsz;
+ mend = mstart + image->segment[i].memsz - 1;
/* Ensure we are within the crash kernel limits */
if ((mstart < crashk_res.start) || (mend > crashk_res.end))
goto out;
_
reply other threads:[~2005-06-21 9:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050621092223.GE3746@in.ibm.com \
--to=vgoyal@in.ibm.com \
--cc=akpm@osdl.org \
--cc=ebiederm@xmission.com \
--cc=fastboot@lists.osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®