Re: [PATCH 10/13] kexec: Load and Relocate purgatory at kernel load time

2014-06-13 Thread Borislav Petkov
On Wed, Jun 11, 2014 at 03:24:48PM -0400, Vivek Goyal wrote: > This new syscall requires sha256 even if signature checking does not > happen. Purgatory verifies checksum of segments. > > I had to select CRYPTO also otherwise CONFIG_CRYPTO=m broke the build. > > > > > Which begs the more

Re: [PATCH 10/13] kexec: Load and Relocate purgatory at kernel load time

2014-06-13 Thread Borislav Petkov
On Wed, Jun 11, 2014 at 03:24:48PM -0400, Vivek Goyal wrote: This new syscall requires sha256 even if signature checking does not happen. Purgatory verifies checksum of segments. I had to select CRYPTO also otherwise CONFIG_CRYPTO=m broke the build. Which begs the more important

Re: [PATCH 10/13] kexec: Load and Relocate purgatory at kernel load time

2014-06-11 Thread Vivek Goyal
On Tue, Jun 10, 2014 at 06:31:28PM +0200, Borislav Petkov wrote: [..] > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > > index 213308a..0f24b61 100644 > > --- a/arch/x86/Kconfig > > +++ b/arch/x86/Kconfig > > @@ -1556,6 +1556,8 @@ source kernel/Kconfig.hz > > config KEXEC > > bool

Re: [PATCH 10/13] kexec: Load and Relocate purgatory at kernel load time

2014-06-11 Thread Vivek Goyal
On Tue, Jun 10, 2014 at 06:31:28PM +0200, Borislav Petkov wrote: [..] diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 213308a..0f24b61 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1556,6 +1556,8 @@ source kernel/Kconfig.hz config KEXEC bool kexec system call

Re: [PATCH 10/13] kexec: Load and Relocate purgatory at kernel load time

2014-06-10 Thread Borislav Petkov
On Tue, Jun 03, 2014 at 09:06:59AM -0400, Vivek Goyal wrote: > Load purgatory code in RAM and relocate it based on the location. Relocation > code has been inspired by module relocation code and purgatory relocation > code in kexec-tools. > > Also compute the checksums of loaded kexec segments

Re: [PATCH 10/13] kexec: Load and Relocate purgatory at kernel load time

2014-06-10 Thread Borislav Petkov
On Tue, Jun 03, 2014 at 09:06:59AM -0400, Vivek Goyal wrote: Load purgatory code in RAM and relocate it based on the location. Relocation code has been inspired by module relocation code and purgatory relocation code in kexec-tools. Also compute the checksums of loaded kexec segments and

[PATCH 10/13] kexec: Load and Relocate purgatory at kernel load time

2014-06-03 Thread Vivek Goyal
Load purgatory code in RAM and relocate it based on the location. Relocation code has been inspired by module relocation code and purgatory relocation code in kexec-tools. Also compute the checksums of loaded kexec segments and store them in purgatory. Arch independent code provides this

[PATCH 10/13] kexec: Load and Relocate purgatory at kernel load time

2014-06-03 Thread Vivek Goyal
Load purgatory code in RAM and relocate it based on the location. Relocation code has been inspired by module relocation code and purgatory relocation code in kexec-tools. Also compute the checksums of loaded kexec segments and store them in purgatory. Arch independent code provides this