[packages/kernel] kernel 5.4 unexported set_memory_x symbol because

arekm arekm at pld-linux.org
Wed Nov 27 07:28:19 CET 2019


commit 93ea27350ab4220f275b274994ee1ccdd202433c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Nov 27 06:38:58 2019 +0100

    kernel 5.4 unexported set_memory_x symbol because
    
    "No module currently messed with clearing or setting the execute
    permission of kernel memory, and none really should."
    
    but this patch does exactly that, so export symbol again.

 linux-wistron-nx.patch | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/linux-wistron-nx.patch b/linux-wistron-nx.patch
index 8336ad8f..bbd6a923 100644
--- a/linux-wistron-nx.patch
+++ b/linux-wistron-nx.patch
@@ -24,3 +24,13 @@
  	}
  	/* The Windows driver maps 0x10000 bytes, we keep only one page... */
  	bios_data_map_base = ioremap(0x400, 0xc00);
+--- linux-5.4/arch/x86/mm/pageattr.c~	2019-11-25 01:32:01.000000000 +0100
++++ linux-5.4/arch/x86/mm/pageattr.c	2019-11-27 06:38:21.886578313 +0100
+@@ -1885,6 +1885,7 @@ int set_memory_x(unsigned long addr, int
+ 
+ 	return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_NX), 0);
+ }
++EXPORT_SYMBOL(set_memory_x);
+ 
+ int set_memory_nx(unsigned long addr, int numpages)
+ {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/93ea27350ab4220f275b274994ee1ccdd202433c



More information about the pld-cvs-commit mailing list