Re: [PATCH v3 4/4] powerpc: Enable STRICT_MODULE_RWX

2019-10-10 Thread Daniel Axtens
Hi Russell, Tested-by: Daniel Axtens # e6500 Because ptdump isn't quite working on book3e 64bit atm, I hacked it up to print the raw PTE and the extracted flags. After loading a module, I see the supervisor write bit set without module RWX, and it cleared with module RWX. Modules still seem to w

[PATCH v3 4/4] powerpc: Enable STRICT_MODULE_RWX

2019-10-04 Thread Russell Currey
Whether STRICT_MODULE_RWX is enabled by default depends on powerpc platform - in arch/Kconfig, STRICT_MODULE_RWX depends on ARCH_OPTIONAL_KERNEL_RWX, which in arch/powerpc/Kconfig is selected if ARCH_HAS_STRICT_KERNEL_RWX is selected, which is only true with CONFIG_RELOCATABLE *disabled*. defconfi