Re: [PATCH v3 04/12] powerpc: Prepare func_desc_t for refactorisation

2022-02-14 Thread Christophe Leroy
Le 11/02/2022 à 01:54, Kees Cook a écrit : > On Sun, Oct 17, 2021 at 02:38:17PM +0200, Christophe Leroy wrote: >> In preparation of making func_desc_t generic, change the ELFv2 >> version to a struct containing 'addr' element. >> >> This allows using single helpers common to ELFv1 and ELFv2. >> >

Re: [PATCH v3 04/12] powerpc: Prepare func_desc_t for refactorisation

2022-02-10 Thread Segher Boessenkool
On Thu, Feb 10, 2022 at 04:54:52PM -0800, Kees Cook wrote: > On Sun, Oct 17, 2021 at 02:38:17PM +0200, Christophe Leroy wrote: (edited:) > > +typedef struct { > > + unsigned long addr; > > +} func_desc_t; > > > > static func_desc_t func_desc(unsigned long addr) > > { > > + return (func_desc

Re: [PATCH v3 04/12] powerpc: Prepare func_desc_t for refactorisation

2022-02-10 Thread Kees Cook
On Sun, Oct 17, 2021 at 02:38:17PM +0200, Christophe Leroy wrote: > In preparation of making func_desc_t generic, change the ELFv2 > version to a struct containing 'addr' element. > > This allows using single helpers common to ELFv1 and ELFv2. > > Signed-off-by: Christophe Leroy > --- > arch/po

Re: [PATCH v3 04/12] powerpc: Prepare func_desc_t for refactorisation

2021-10-18 Thread Christophe Leroy
Le 18/10/2021 à 08:27, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of October 17, 2021 10:38 pm: In preparation of making func_desc_t generic, change the ELFv2 version to a struct containing 'addr' element. This allows using single helpers common to ELFv1 and ELFv2. S

Re: [PATCH v3 04/12] powerpc: Prepare func_desc_t for refactorisation

2021-10-17 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of October 17, 2021 10:38 pm: > In preparation of making func_desc_t generic, change the ELFv2 > version to a struct containing 'addr' element. > > This allows using single helpers common to ELFv1 and ELFv2. > > Signed-off-by: Christophe Leroy > --- > a

[PATCH v3 04/12] powerpc: Prepare func_desc_t for refactorisation

2021-10-17 Thread Christophe Leroy
In preparation of making func_desc_t generic, change the ELFv2 version to a struct containing 'addr' element. This allows using single helpers common to ELFv1 and ELFv2. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/module_64.c | 32 ++-- 1 file changed, 14