aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <[email protected]>2022-06-26 11:50:43 +0200
committerHelge Deller <[email protected]>2022-06-26 12:23:15 +0200
commit0a1355db36718178becd2bfe728a023933d73123 (patch)
treeb8b335ed227654f2b1418cdd82309d700d7ced68
parente9ed22e6e5010997a2f922eef61ca797d0a2a246 (diff)
parisc: Enable ARCH_HAS_STRICT_MODULE_RWX
Fix 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 prevent writing to write-protected memory. Signed-off-by: Helge Deller <[email protected]> Suggested-by: John David Anglin <[email protected]> Cc: [email protected] # v5.2+ Link: https://lore.kernel.org/all/[email protected]/
-rw-r--r--arch/parisc/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
index 5f2448dc5a2b..fa400055b2d5 100644
--- a/arch/parisc/Kconfig
+++ b/arch/parisc/Kconfig
@@ -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