Re: [PATCH v2 5/5] powerpc: Select ARCH_WANTS_MODULES_DATA_IN_VMALLOC on book3s/32 and 8xx

2022-02-06 Thread Michael Ellerman
Christophe Leroy writes: > Le 03/02/2022 à 06:39, Michael Ellerman a écrit : >> Luis Chamberlain writes: >>> On Thu, Jan 27, 2022 at 11:28:12AM +, Christophe Leroy wrote: book3s/32 and 8xx have a separate area for allocating modules, defined by MODULES_VADDR / MODULES_END.

Re: [PATCH v2 5/5] powerpc: Select ARCH_WANTS_MODULES_DATA_IN_VMALLOC on book3s/32 and 8xx

2022-02-02 Thread Christophe Leroy
Le 03/02/2022 à 06:39, Michael Ellerman a écrit : > Luis Chamberlain writes: >> On Thu, Jan 27, 2022 at 11:28:12AM +, Christophe Leroy wrote: >>> book3s/32 and 8xx have a separate area for allocating modules, >>> defined by MODULES_VADDR / MODULES_END. >>> >>> On book3s/32, it is not

Re: [PATCH v2 5/5] powerpc: Select ARCH_WANTS_MODULES_DATA_IN_VMALLOC on book3s/32 and 8xx

2022-02-02 Thread Michael Ellerman
Luis Chamberlain writes: > On Thu, Jan 27, 2022 at 11:28:12AM +, Christophe Leroy wrote: >> book3s/32 and 8xx have a separate area for allocating modules, >> defined by MODULES_VADDR / MODULES_END. >> >> On book3s/32, it is not possible to protect against execution >> on a page basis. A full

Re: [PATCH v2 5/5] powerpc: Select ARCH_WANTS_MODULES_DATA_IN_VMALLOC on book3s/32 and 8xx

2022-02-02 Thread Luis Chamberlain
On Thu, Jan 27, 2022 at 11:28:12AM +, Christophe Leroy wrote: > book3s/32 and 8xx have a separate area for allocating modules, > defined by MODULES_VADDR / MODULES_END. > > On book3s/32, it is not possible to protect against execution > on a page basis. A full 256M segment is either Exec or

[PATCH v2 5/5] powerpc: Select ARCH_WANTS_MODULES_DATA_IN_VMALLOC on book3s/32 and 8xx

2022-01-27 Thread Christophe Leroy
book3s/32 and 8xx have a separate area for allocating modules, defined by MODULES_VADDR / MODULES_END. On book3s/32, it is not possible to protect against execution on a page basis. A full 256M segment is either Exec or NoExec. The module area is in an Exec segment while vmalloc area is in a