Skip to content

Commit 0a1355d

Browse files
committed
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]/
1 parent e9ed22e commit 0a1355d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/parisc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config PARISC
1010
select ARCH_WANT_FRAME_POINTERS
1111
select ARCH_HAS_ELF_RANDOMIZE
1212
select ARCH_HAS_STRICT_KERNEL_RWX
13+
select ARCH_HAS_STRICT_MODULE_RWX
1314
select ARCH_HAS_UBSAN_SANITIZE_ALL
1415
select ARCH_HAS_PTE_SPECIAL
1516
select ARCH_NO_SG_CHAIN

0 commit comments

Comments
 (0)