]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: mm: only wrprotect clean ptes if they are present
authorWill Deacon <will.deacon@arm.com>
Wed, 9 Jan 2013 11:08:10 +0000 (11:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jan 2013 19:44:32 +0000 (11:44 -0800)
commit3cfafe0fa8c1d952a0ae2ced0a0817ed9450e3f5
tree412c91606445822d5e0410516c467f9f17ae64ec
parentf4a5daeef931c0c8eb2bb631ab0c1d9e829326cb
arm64: mm: only wrprotect clean ptes if they are present

commit 02522463c84748b3b8ad770f9424bcfa70a5b4c4 upstream.

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.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/pgtable.h