commit | 02522463c84748b3b8ad770f9424bcfa70a5b4c4 | [log] [tgz] |
---|---|---|
author | Will Deacon <will.deacon@arm.com> | Wed Jan 09 11:08:10 2013 +0000 |
committer | Catalin Marinas <catalin.marinas@arm.com> | Thu Jan 10 10:43:44 2013 +0000 |
tree | 5fc357a4979da3d355735215a01900b3f2e2994c | |
parent | bdba0051ebcb3c6372f9cc0b2524c47cc6ce46fd [diff] |
arm64: mm: only wrprotect clean ptes if they are present Marking non-present ptes as read-only can corrupt file ptes, breaking things like swap and file mappings. This patch ensures that we only manipulate user pte bits when the pte is marked present. Cc: <stable@vger.kernel.org> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>