Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Geert Uytterhoeven
On Fri, Nov 22, 2013 at 2:55 AM, Vivek Goyal vgo...@redhat.com wrote: Before you are done we need an ELF loader. bzImage really is very uninteresting. To the point I am not at all convinced that an in kernel loader should support it. Hi Eric, Why ELF case is so interesting. I have not use

[PATCH] makedumpfile: add a new function update_cyclic_region_without_exclude for partial_bitmap1 setting

2013-11-22 Thread Baoquan He
When use --message-level 31 to do a kdump compressed dump, printing message is not correct any more. Free pages number is doubled as below. Original pages : 0x0007539c Excluded pages : 0x000d986a Pages filled with zero : 0x1196 Cache pages :

[PATCH v4] makedumpfile: Support to filter dump for kernels that use CONFIG_SPARSEMEM_VMEMMAP

2013-11-22 Thread Hari Bathini
Makedumpfile fails to filter dump for kernels build with CONFIG_SPARSEMEM_VMEMMAP enabled as it fails to do vmemmap translations. So far, makedumpfile on ppc64 never had to deal with vmemmap addresses (vmemmap regions) seperately to filter ppc64 crash dumps as vmemmap regions where mapped in

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Jiri Kosina
On Fri, 22 Nov 2013, Geert Uytterhoeven wrote: Why ELF case is so interesting. I have not use kexec to boot ELF images in years and have not seen others using it too. In fact bzImage seems to be the most common kernel image format for x86, most of the distros ship and use. So first I

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Vivek Goyal
On Fri, Nov 22, 2013 at 10:09:17AM +0100, Geert Uytterhoeven wrote: On Fri, Nov 22, 2013 at 2:55 AM, Vivek Goyal vgo...@redhat.com wrote: Before you are done we need an ELF loader. bzImage really is very uninteresting. To the point I am not at all convinced that an in kernel loader should

Re: [PATCH v4] makedumpfile: Support to filter dump for kernels that use CONFIG_SPARSEMEM_VMEMMAP

2013-11-22 Thread Vivek Goyal
On Fri, Nov 22, 2013 at 06:01:55PM +0530, Hari Bathini wrote: Makedumpfile fails to filter dump for kernels build with CONFIG_SPARSEMEM_VMEMMAP enabled as it fails to do vmemmap translations. So far, makedumpfile on ppc64 never had to deal with vmemmap addresses (vmemmap regions) seperately

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Vivek Goyal
On Fri, Nov 22, 2013 at 02:30:17PM +0100, Jiri Kosina wrote: On Fri, 22 Nov 2013, Geert Uytterhoeven wrote: Why ELF case is so interesting. I have not use kexec to boot ELF images in years and have not seen others using it too. In fact bzImage seems to be the most common kernel image

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Jiri Kosina
On Fri, 22 Nov 2013, Vivek Goyal wrote: OTOH, does this feature make any sense whatsover on architectures that don't support secure boot anyway? I guess if signed modules makes sense, then being able to kexec signed kernel images should make sense too, in general. Well, that's really a

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Vivek Goyal
On Fri, Nov 22, 2013 at 05:34:03AM -0800, Eric W. Biederman wrote: [..] Why ELF case is so interesting. I have not use kexec to boot ELF images in years and have not seen others using it too. In fact bzImage seems to be the most common kernel image format for x86, most of the distros ship

Re: [PATCH 5/6] kexec-bzImage: Support for loading bzImage using 64bit entry

2013-11-22 Thread H. Peter Anvin
On 11/21/2013 11:21 AM, Vivek Goyal wrote: What do you mean by the real mode entry? Do we need to care about that because we aren't falling back to real mode when executing this, are we? Or does that just happen for 32bit kernels? Original kexec offers real mode entry choice too. So we

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Jiri Kosina
On Fri, 22 Nov 2013, Geert Uytterhoeven wrote: Only arm, i386, ppc, ppc64, sh, and x86_64 support zImage. It's not clear to me what alpha supports (if it supports anything at all?). Motiviation behind this patchset is secureboot. That is x86 specific only and bzImage is most commonly

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Eric Paris
On Fri, Nov 22, 2013 at 10:33 AM, Jiri Kosina jkos...@suse.cz wrote: On Fri, 22 Nov 2013, Geert Uytterhoeven wrote: Only arm, i386, ppc, ppc64, sh, and x86_64 support zImage. It's not clear to me what alpha supports (if it supports anything at all?). Motiviation behind this patchset

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Jiri Kosina
On Fri, 22 Nov 2013, Eric Paris wrote: Consider a cloud provider who gives their customer a machine where they, the cloud provider, is specifying the kernel and initrd. This is a real thing that people do today. Root on the machine has ZERO control over the kernel, bootloader, and initrd.

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Vivek Goyal
On Fri, Nov 22, 2013 at 05:04:04PM +0100, Jiri Kosina wrote: On Fri, 22 Nov 2013, Eric Paris wrote: Consider a cloud provider who gives their customer a machine where they, the cloud provider, is specifying the kernel and initrd. This is a real thing that people do today. Root on the

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Vivek Goyal
On Fri, Nov 22, 2013 at 02:50:43PM +0100, Jiri Kosina wrote: On Fri, 22 Nov 2013, Vivek Goyal wrote: OTOH, does this feature make any sense whatsover on architectures that don't support secure boot anyway? I guess if signed modules makes sense, then being able to kexec signed

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Kees Cook
On Fri, Nov 22, 2013 at 7:33 AM, Vivek Goyal vgo...@redhat.com wrote: On Fri, Nov 22, 2013 at 02:50:43PM +0100, Jiri Kosina wrote: On Fri, 22 Nov 2013, Vivek Goyal wrote: OTOH, does this feature make any sense whatsover on architectures that don't support secure boot anyway? I guess

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Greg KH
On Fri, Nov 22, 2013 at 09:19:46AM -0500, Vivek Goyal wrote: On Fri, Nov 22, 2013 at 05:34:03AM -0800, Eric W. Biederman wrote: [..] Why ELF case is so interesting. I have not use kexec to boot ELF images in years and have not seen others using it too. In fact bzImage seems to be the

Re: [PATCH 4/6] kexec: A new system call, kexec_file_load, for in kernel kexec

2013-11-22 Thread Jiri Kosina
On Wed, 20 Nov 2013, Vivek Goyal wrote: This patch implements the in kernel kexec functionality. It implements a new system call kexec_file_load. I think parameter list of this system call will change as I have not done the kernel image signature handling yet. I have been told that I might

Re: [patch 0/9 v3] kexec kernel efi runtime support

2013-11-22 Thread Toshi Kani
On Thu, 2013-11-21 at 14:17 +0800, dyo...@redhat.com wrote: Hi, Here is the V3 for supporting kexec kernel efi runtime. Per pervious discussion I pass the 1st kernel efi runtime mapping via setup_data to 2nd kernel. Besides of the runtime mapping info I also pass the fw_vendor, runtime,

Re: [patch 0/4 v3] kexec-tools: efi runtime support

2013-11-22 Thread Toshi Kani
On Thu, 2013-11-21 at 14:40 +0800, dyo...@redhat.com wrote: Hi, This is the v3 patchset for adding efi runtime support on kexec kernel kernel patches was sent a while ago, not yet updated in archive. in kexec-tools, this patchset will do below: 1. retrieve efi_info from sysfs

Re: [PATCH 0/6] kexec: A new system call to allow in kernel loading

2013-11-22 Thread Eric W. Biederman
Vivek Goyal vgo...@redhat.com writes: On Fri, Nov 22, 2013 at 05:34:03AM -0800, Eric W. Biederman wrote: [..] Why ELF case is so interesting. I have not use kexec to boot ELF images in years and have not seen others using it too. In fact bzImage seems to be the most common kernel image

Re: [PATCH 4/6] kexec: A new system call, kexec_file_load, for in kernel kexec

2013-11-22 Thread Eric W. Biederman
Vivek Goyal vgo...@redhat.com writes: On Thu, Nov 21, 2013 at 07:19:07PM +, Matthew Garrett wrote: On Thu, Nov 21, 2013 at 02:13:05PM -0500, Vivek Goyal wrote: On Thu, Nov 21, 2013 at 07:06:20PM +, Matthew Garrett wrote: That would require a certain degree of massaging from