lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 30 Oct 2010 10:56:32 +0200
From:	Marco Stornelli <marco.stornelli@...il.com>
To:	Linux Kernel <linux-kernel@...r.kernel.org>
CC:	x86@...nel.org, andi@...stfloor.org,
	Tim Bird <tim.bird@...sony.com>, tglx@...utronix.de
Subject: [PATCH] archs: add Kconfig symbol for set memory ro feature

From: Marco Stornelli <marco.stornelli@...il.com>

This patch adds a new Kconfig symbol to recognize which arch implements a couple of functions set_memory_ro/set_memory_rw. These functions sets/unsets read-only flag at page table entry level. Until now only x86
has got these functions. Next target will be arm and powerpc.

Signed-off-by: Marco Stornelli <marco.stornelli@...il.com>
---

--- linux-2.6.36-orig/arch/Kconfig	2010-09-13 01:07:37.000000000 +0200
+++ linux-2.6.36/arch/Kconfig	2010-10-30 10:27:16.000000000 +0200
@@ -83,6 +83,9 @@ config USER_RETURN_NOTIFIER
 config HAVE_IOREMAP_PROT
 	bool
 
+config HAVE_SET_MEMORY_RO
+	bool
+
 config HAVE_KPROBES
 	bool
 
--- linux-2.6.36-orig/arch/x86/Kconfig	2010-09-13 01:07:37.000000000 +0200
+++ linux-2.6.36/arch/x86/Kconfig	2010-10-30 10:27:38.000000000 +0200
@@ -26,6 +26,7 @@ config X86
 	select HAVE_OPROFILE
 	select HAVE_PERF_EVENTS if (!M386 && !M486)
 	select HAVE_IOREMAP_PROT
+	select HAVE_SET_MEMORY_RO
 	select HAVE_KPROBES
 	select ARCH_WANT_OPTIONAL_GPIOLIB
 	select ARCH_WANT_FRAME_POINTERS

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ