From: Baoquan He <bhe@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: kexec@lists.infradead.org, ebiederm@xmission.com, hpa@zytor.com,
tglx@linutronix.de, mingo@redhat.com, vgoyal@redhat.com,
keescook@chromium.org, ak@linux.intel.com,
kumagai-atsushi@mxc.nes.nec.co.jp, Baoquan He <bhe@redhat.com>
Subject: [Patch v2 2/2] export the kernel image size KERNEL_IMAGE_SIZE
Date: Fri, 12 Sep 2014 14:20:32 +0800 [thread overview]
Message-ID: <1410502832-3573-2-git-send-email-bhe@redhat.com> (raw)
In-Reply-To: <1410502832-3573-1-git-send-email-bhe@redhat.com>
Now kaslr makes kernel image size changable, not the fixed size 512M.
So KERNEL_IMAGE_SIZE need be exported to VMCOREINFO, otherwise makedumfile
will crash.
Signed-off-by: Baoquan He <bhe@redhat.com>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
---
kernel/kexec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/kexec.c b/kernel/kexec.c
index 2bee072..bd680d3 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -2003,6 +2003,9 @@ static int __init crash_save_vmcoreinfo_init(void)
#endif
VMCOREINFO_NUMBER(PG_head_mask);
VMCOREINFO_NUMBER(PAGE_BUDDY_MAPCOUNT_VALUE);
+#ifdef CONFIG_X86
+ VMCOREINFO_NUMBER(KERNEL_IMAGE_SIZE);
+#endif
#ifdef CONFIG_HUGETLBFS
VMCOREINFO_SYMBOL(free_huge_page);
#endif
--
1.8.5.3
next prev parent reply other threads:[~2014-09-12 6:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-12 6:20 [Patch v2 1/2] kaslr: check if kernel location is changed Baoquan He
2014-09-12 6:20 ` Baoquan He [this message]
2014-09-12 12:04 ` Vivek Goyal
2014-09-12 13:41 ` Baoquan He
2014-09-12 15:22 ` [Patch v3 " Baoquan He
2014-09-12 15:33 ` Vivek Goyal
2014-09-12 15:56 ` Thomas D.
2014-09-12 15:59 ` Vivek Goyal
2014-09-12 17:41 ` Kees Cook
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=1410502832-3573-2-git-send-email-bhe@redhat.com \
--to=bhe@redhat.com \
--cc=ak@linux.intel.com \
--cc=ebiederm@xmission.com \
--cc=hpa@zytor.com \
--cc=keescook@chromium.org \
--cc=kexec@lists.infradead.org \
--cc=kumagai-atsushi@mxc.nes.nec.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=vgoyal@redhat.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
Powered by JetHome