Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1643668

[PATCH] um: Add mark_rodata_ro support.

From Thomas Meyer <thomas@m3y3r.de>
Newsgroups linux.kernel
Subject [PATCH] um: Add mark_rodata_ro support.
Date 2017-05-18 00:20 +0200
Message-ID <tIfsu-AE-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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)
+{
+}

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] um: Add mark_rodata_ro support. Thomas Meyer <thomas@m3y3r.de> - 2017-05-18 00:20 +0200
  Re: [uml-devel] [PATCH] um: Add mark_rodata_ro support. Richard Weinberger <richard.weinberger@gmail.com> - 2017-05-21 23:30 +0200
    Re: [uml-devel] [PATCH] um: Add mark_rodata_ro support. Thomas Meyer <thomas@m3y3r.de> - 2017-05-22 20:20 +0200
      Re: [uml-devel] [PATCH] um: Add mark_rodata_ro support. Richard Weinberger <richard@nod.at> - 2017-05-22 20:40 +0200
        Re: [uml-devel] [PATCH] um: Add mark_rodata_ro support. Thomas Meyer <thomas@m3y3r.de> - 2017-05-22 21:20 +0200
          Re: [uml-devel] [PATCH] um: Add mark_rodata_ro support. Richard Weinberger <richard@nod.at> - 2017-05-22 21:40 +0200
            Re: [uml-devel] [PATCH] um: Add mark_rodata_ro support. Thomas Meyer <thomas@m3y3r.de> - 2017-05-22 22:50 +0200

csiph-web