lkml.org 
[lkml]   [2014]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/4] export the kernel image size KERNEL_IMAGE_SIZE
On Fri, Sep 05, 2014 at 10:08:17PM +0800, Baoquan He wrote:
> 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>

This one sounds reasonable. CCing Atshushi.

Thanks
Vivek

> ---
> 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


\
 
 \ /
  Last update: 2014-09-09 22:21    [W:0.895 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site