parisc: Enable ARCH_HAS_STRICT_MODULE_RWX
Helge Deller
maintainerPATCH 1/1 parisc: Enable ARCH_HAS_STRICT_MODULE_RWX
This fixes a boot crash on a c8000 machine as reported by Dave. Basically it changes patch_map() to return an alias mapping to the to-be-patched code in order to preent writing to write-protected memory.
Signed-off-by Helge Deller <[email protected]>
Suggested-by John David Anglin <[email protected]>
Cc [email protected] # v5.2+
--- arch/parisc/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/parisc/Kconfig +1 -0
@@ -10,6 +10,7 @@ config PARISC select ARCH_WANT_FRAME_POINTERS select ARCH_HAS_ELF_RANDOMIZE select ARCH_HAS_STRICT_KERNEL_RWX + select ARCH_HAS_STRICT_MODULE_RWX select ARCH_HAS_UBSAN_SANITIZE_ALL select ARCH_HAS_PTE_SPECIAL select ARCH_NO_SG_CHAIN
--
2.35.3