Skip to contentSkip to conversation

mark-protection_map-as-__ro_after_init.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 7, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/mmap.c: mark protection_map as __ro_after_init
has been removed from the -mm tree. Its filename was
mark-protection_map-as-__ro_after_init.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Daniel Micay <[email protected]>
Subject: mm/mmap.c: mark protection_map as __ro_after_init

The protection map is only modified by per-arch init code so it can be protected from writes after the init code runs.

This change was extracted from PaX where it's part of KERNEXEC.

---

 mm/mmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/mmap.c renamed from mm/mmap.c~mark-protection_map-as-__ro_after_init +1 -1
diff -puN mm/mmap.c~mark-protection_map-as-__ro_after_init mm/mmap.c
@@ -94,7 +94,7 @@ static void unmap_region(struct mm_struc
  *								w: (no) no
  *								x: (yes) yes
  */
-pgprot_t protection_map[16] = {
+pgprot_t protection_map[16] __ro_after_init = {
 	__P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111,
 	__S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
 };

_

Patches currently in -mm which might be from [email protected] are

include-linux-stringh-add-the-option-of-fortified-stringh-functions.patch