From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754221AbdEQWLM (ORCPT ); Wed, 17 May 2017 18:11:12 -0400 Received: from www17.your-server.de ([213.133.104.17]:52487 "EHLO www17.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753658AbdEQWLL (ORCPT ); Wed, 17 May 2017 18:11:11 -0400 Message-ID: <1495059066.27187.2.camel@m3y3r.de> Subject: [PATCH] um: Add mark_rodata_ro support. From: Thomas Meyer To: Linux Kernel Mailing List , user-mode-linux-devel Date: Thu, 18 May 2017 00:11:06 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-2.fc25) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Sender: thomas@m3y3r.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is actually a no-op as all read-only should be read-only in the ELF. Signed-off-by: Thomas Meyer ---  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) +{ +}