All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] um: Add mark_rodata_ro support.
@ 2017-05-17 22:11 Thomas Meyer
  2017-05-21 21:28   ` Richard Weinberger
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Meyer @ 2017-05-17 22:11 UTC (permalink / raw)
  To: Linux Kernel Mailing List, user-mode-linux-devel

This is actually a no-op as all read-only should be read-only in the ELF.

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
---
 arch/um/Kconfig.common | 1 +
 arch/um/kernel/mem.c   | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common
index 85f6dd2..061009b 100644
--- a/arch/um/Kconfig.common
+++ b/arch/um/Kconfig.common
@@ -2,6 +2,7 @@ config UML
 	bool
 	default y
 	select ARCH_HAS_KCOV
+	select ARCH_HAS_STRICT_KERNEL_RWX
 	select HAVE_ARCH_AUDITSYSCALL
 	select HAVE_ARCH_SECCOMP_FILTER
 	select HAVE_UID16
diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c
index e7437ec..027ed03 100644
--- a/arch/um/kernel/mem.c
+++ b/arch/um/kernel/mem.c
@@ -168,7 +168,6 @@ void __init paging_init(void)
  * This can't do anything because nothing in the kernel image can be freed
  * since it's not in kernel physical memory.
  */
-
 void free_initmem(void)
 {
 }
@@ -238,3 +237,7 @@ void *uml_kmalloc(int size, int flags)
 {
 	return kmalloc(size, flags);
 }
+
+void mark_rodata_ro(void)
+{
+}

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-05-22 20:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-17 22:11 [PATCH] um: Add mark_rodata_ro support Thomas Meyer
2017-05-21 21:28 ` [uml-devel] " Richard Weinberger
2017-05-21 21:28   ` Richard Weinberger
2017-05-22 18:14   ` Thomas Meyer
2017-05-22 18:34     ` Richard Weinberger
2017-05-22 19:18       ` Thomas Meyer
2017-05-22 19:18         ` Thomas Meyer
2017-05-22 19:37         ` Richard Weinberger
2017-05-22 20:40           ` Thomas Meyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.