* + mark-protection_map-as-__ro_after_init.patch added to -mm tree
@ 2017-05-10 20:42 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2017-05-10 20:42 UTC (permalink / raw)
To: danielmicay, keescook, mm-commits
The patch titled
Subject: mm/mmap.c: mark protection_map as __ro_after_init
has been added to the -mm tree. Its filename is
mark-protection_map-as-__ro_after_init.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mark-protection_map-as-__ro_after_init.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mark-protection_map-as-__ro_after_init.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Daniel Micay <danielmicay@gmail.com>
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.
Link: http://lkml.kernel.org/r/20170510174441.26163-1-danielmicay@gmail.com
Signed-off-by: Daniel Micay <danielmicay@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/mmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN mm/mmap.c~mark-protection_map-as-__ro_after_init mm/mmap.c
--- a/mm/mmap.c~mark-protection_map-as-__ro_after_init
+++ a/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 danielmicay@gmail.com are
mark-protection_map-as-__ro_after_init.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-10 20:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-10 20:42 + mark-protection_map-as-__ro_after_init.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).