linux: Re-enable STRICT_KERNEL_RWX
A workaround was put in place in future kernels (as of 5.0.10) for the
issue exposed by STRICT_KERNEL_RWX. The workaround changes RADIX to
require HUGETLBFS while the root cause is fixed.
The disabling of STRICT_KERNEL_RWX can be reverted with this alternate
workaround in place.
We need to enables HUGETLBFS so we continue using the radix MMU,
otherwise the configuration will fall back to using hash MMU.
See https://github.com/linuxppc/issues/issues/237.
Fixes: 885ef25a0d68 ("linux: temporarily disable STRICT_KERNEL_RWX")
Fixes: 85cc33affffd ("kernel: Move to Linux v4.14.1-openpower1")
Signed-off-by: Joel Stanley <joel@jms.id.au>
diff --git a/openpower/configs/linux/skiroot_defconfig b/openpower/configs/linux/skiroot_defconfig
index 51d6ed2..a887616 100644
--- a/openpower/configs/linux/skiroot_defconfig
+++ b/openpower/configs/linux/skiroot_defconfig
@@ -30,6 +30,7 @@
# CONFIG_COMPAT_BRK is not set
CONFIG_SLAB_FREELIST_HARDENED=y
CONFIG_JUMP_LABEL=y
+CONFIG_STRICT_KERNEL_RWX=y
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_SIG=y
@@ -267,6 +268,7 @@
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_PROC_KCORE=y
+CONFIG_HUGETLBFS=y
# CONFIG_MISC_FILESYSTEMS is not set
# CONFIG_NETWORK_FILESYSTEMS is not set
CONFIG_NLS=y