This is a note to let you know that I've just added the patch titled

    arm64: Make !dirty ptes read-only

to the 3.7-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arm64-make-dirty-ptes-read-only.patch
and it can be found in the queue-3.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 33eaa58f854770dc9c98411a356c98e3a53edfda Mon Sep 17 00:00:00 2001
From: Catalin Marinas <[email protected]>
Date: Wed, 28 Nov 2012 17:06:05 +0000
Subject: arm64: Make !dirty ptes read-only

From: Catalin Marinas <[email protected]>

commit 33eaa58f854770dc9c98411a356c98e3a53edfda upstream.

The AArch64 Linux port relies on the mm code to wrprotect clean ptes.
This however is not the case with newly created ptes and
PAGE_SHARED(_EXEC) is writable but !dirty.

Signed-off-by: Catalin Marinas <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 arch/arm64/include/asm/pgtable.h |    2 ++
 1 file changed, 2 insertions(+)

--- a/arch/arm64/include/asm/pgtable.h
+++ b/arch/arm64/include/asm/pgtable.h
@@ -159,6 +159,8 @@ static inline void set_pte_at(struct mm_
 {
        if (pte_present_exec_user(pte))
                __sync_icache_dcache(pte, addr);
+       if (!pte_dirty(pte))
+               pte = pte_wrprotect(pte);
        set_pte(ptep, pte);
 }
 


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

queue-3.7/arm64-make-dirty-ptes-read-only.patch
queue-3.7/arm64-signal-push-the-unwinding-prologue-on-the-signal-stack.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to