Re: [RESEND][PATCH] x86, relocs: move ELF relocation handling to C

2013-07-08 Thread Zhang Yanfei
On 07/08/2013 09:25 PM, Kees Cook wrote: > On Tue, Jul 2, 2013 at 8:22 PM, Zhang Yanfei > wrote: >> Hello Kees, >> >> On 07/03/2013 02:22 AM, Kees Cook wrote: >>> Moves the relocation handling into C, after decompression. This requires >>> that the decompressed size is passed to the decompression

Re: [RESEND][PATCH] x86, relocs: move ELF relocation handling to C

2013-07-08 Thread Kees Cook
On Tue, Jul 2, 2013 at 8:22 PM, Zhang Yanfei wrote: > Hello Kees, > > On 07/03/2013 02:22 AM, Kees Cook wrote: >> Moves the relocation handling into C, after decompression. This requires >> that the decompressed size is passed to the decompression routine as >> well so that relocations can be foun

Re: [RESEND][PATCH] x86, relocs: move ELF relocation handling to C

2013-07-02 Thread Zhang Yanfei
Hello Kees, On 07/03/2013 02:22 AM, Kees Cook wrote: > Moves the relocation handling into C, after decompression. This requires > that the decompressed size is passed to the decompression routine as > well so that relocations can be found. Only kernels that need relocation > support will use the c

[RESEND][PATCH] x86, relocs: move ELF relocation handling to C

2013-07-02 Thread Kees Cook
Moves the relocation handling into C, after decompression. This requires that the decompressed size is passed to the decompression routine as well so that relocations can be found. Only kernels that need relocation support will use the code (currently just x86_32), but this is laying the ground wor

Re: [PATCH] x86, relocs: move ELF relocation handling to C

2013-06-12 Thread H. Peter Anvin
On 06/12/2013 11:13 AM, Yinghai Lu wrote: > > it seems those lines for x86_64 are never used. > as X86_NEED_RELOCS is not defined for x86_64 > >> config X86_NEED_RELOCS >> def_bool y >> depends on X86_32 && RELOCATABLE > > >> +} >> +#else >> +static inline void handle_relocatio

Re: [PATCH] x86, relocs: move ELF relocation handling to C

2013-06-12 Thread Yinghai Lu
On Tue, Jun 11, 2013 at 11:58 AM, Kees Cook wrote: > Moves the relocation handling into C, after decompression. This requires > that the decompressed size is passed to the decompression routine as > well so that relocations can be found. Only kernels that need relocation > support will use the cod

Re: [PATCH] x86, relocs: move ELF relocation handling to C

2013-06-12 Thread Pekka Enberg
On Wed, Jun 12, 2013 at 7:26 PM, Kees Cook wrote: > On Tue, Jun 11, 2013 at 11:27 PM, Pekka Enberg wrote: >> Hello Kees, >> >> On Tue, Jun 11, 2013 at 9:58 PM, Kees Cook wrote: >>> Moves the relocation handling into C, after decompression. This requires >>> that the decompressed size is passed t

Re: [PATCH] x86, relocs: move ELF relocation handling to C

2013-06-12 Thread Kees Cook
On Tue, Jun 11, 2013 at 11:27 PM, Pekka Enberg wrote: > Hello Kees, > > On Tue, Jun 11, 2013 at 9:58 PM, Kees Cook wrote: >> Moves the relocation handling into C, after decompression. This requires >> that the decompressed size is passed to the decompression routine as >> well so that relocations

Re: [PATCH] x86, relocs: move ELF relocation handling to C

2013-06-11 Thread Pekka Enberg
Hello Kees, On Tue, Jun 11, 2013 at 9:58 PM, Kees Cook wrote: > Moves the relocation handling into C, after decompression. This requires > that the decompressed size is passed to the decompression routine as > well so that relocations can be found. Only kernels that need relocation > support will

[PATCH] x86, relocs: move ELF relocation handling to C

2013-06-11 Thread Kees Cook
Moves the relocation handling into C, after decompression. This requires that the decompressed size is passed to the decompression routine as well so that relocations can be found. Only kernels that need relocation support will use the code. Based on work by Neill Clift and Michael Davidson. Sign