Re: [PATCH v14 3/9] powerpc/modules: Make module_alloc() Strict Module RWX aware

2021-05-17 Thread Michael Ellerman
Christophe Leroy writes: > Le 17/05/2021 à 13:01, Michael Ellerman a écrit : >> Jordan Niethe writes: >>> On Mon, May 17, 2021 at 4:37 PM Christophe Leroy >>> wrote: Le 17/05/2021 à 05:28, Jordan Niethe a écrit : > Make module_alloc() use PAGE_KERNEL protections instead of > PAGE_KE

Re: [PATCH v14 3/9] powerpc/modules: Make module_alloc() Strict Module RWX aware

2021-05-17 Thread Christophe Leroy
Le 17/05/2021 à 13:01, Michael Ellerman a écrit : Jordan Niethe writes: On Mon, May 17, 2021 at 4:37 PM Christophe Leroy wrote: Le 17/05/2021 à 05:28, Jordan Niethe a écrit : Make module_alloc() use PAGE_KERNEL protections instead of PAGE_KERNEL_EXEX if Strict Module RWX is enabled. Sign

Re: [PATCH v14 3/9] powerpc/modules: Make module_alloc() Strict Module RWX aware

2021-05-17 Thread Michael Ellerman
Jordan Niethe writes: > On Mon, May 17, 2021 at 4:37 PM Christophe Leroy > wrote: >> Le 17/05/2021 à 05:28, Jordan Niethe a écrit : >> > Make module_alloc() use PAGE_KERNEL protections instead of >> > PAGE_KERNEL_EXEX if Strict Module RWX is enabled. >> > >> > Signed-off-by: Jordan Niethe >> > -

Re: [PATCH v14 3/9] powerpc/modules: Make module_alloc() Strict Module RWX aware

2021-05-16 Thread Jordan Niethe
On Mon, May 17, 2021 at 4:37 PM Christophe Leroy wrote: > > > > Le 17/05/2021 à 05:28, Jordan Niethe a écrit : > > Make module_alloc() use PAGE_KERNEL protections instead of > > PAGE_KERNEL_EXEX if Strict Module RWX is enabled. > > > > Signed-off-by: Jordan Niethe > > --- > > v14: - Split out fro

Re: [PATCH v14 3/9] powerpc/modules: Make module_alloc() Strict Module RWX aware

2021-05-16 Thread Christophe Leroy
Le 17/05/2021 à 05:28, Jordan Niethe a écrit : Make module_alloc() use PAGE_KERNEL protections instead of PAGE_KERNEL_EXEX if Strict Module RWX is enabled. Signed-off-by: Jordan Niethe --- v14: - Split out from powerpc: Set ARCH_HAS_STRICT_MODULE_RWX - Add and use strict_module_rwx_ena

[PATCH v14 3/9] powerpc/modules: Make module_alloc() Strict Module RWX aware

2021-05-16 Thread Jordan Niethe
Make module_alloc() use PAGE_KERNEL protections instead of PAGE_KERNEL_EXEX if Strict Module RWX is enabled. Signed-off-by: Jordan Niethe --- v14: - Split out from powerpc: Set ARCH_HAS_STRICT_MODULE_RWX - Add and use strict_module_rwx_enabled() helper --- arch/powerpc/include/asm/mmu.h | 5