Re: [PATCH v2 0/6] powerpc/32s: Allocate modules outside of vmalloc space for STRICT_KERNEL_RWX

2020-07-27 Thread Michael Ellerman
On Mon, 29 Jun 2020 11:15:19 + (UTC), Christophe Leroy wrote: > On book3s32 (hash), exec protection is set per 256Mb segments with NX bit. > Instead of clearing NX bit on vmalloc space when CONFIG_MODULES is selected, > allocate modules in a dedicated segment (0xb000-0xbfff by

[PATCH v2 0/6] powerpc/32s: Allocate modules outside of vmalloc space for STRICT_KERNEL_RWX

2020-06-29 Thread Christophe Leroy
On book3s32 (hash), exec protection is set per 256Mb segments with NX bit. Instead of clearing NX bit on vmalloc space when CONFIG_MODULES is selected, allocate modules in a dedicated segment (0xb000-0xbfff by default). This allows to keep exec protection on vmalloc space while allowing