]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: introduce present, faulting entries for PAGE_NONE
authorWill Deacon <will.deacon@arm.com>
Tue, 18 Dec 2012 14:15:15 +0000 (14:15 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 10 Jan 2013 10:48:48 +0000 (10:48 +0000)
commitcd7b0632653e91390a586fc7d0e83fd3bd921d5f
tree2f12828305659a7ae4ec51305f44f1d836aa474b
parent111d97876188e5aca0337f2a131fd0e5c9f380a9
arm64: mm: introduce present, faulting entries for PAGE_NONE

This is mostly a port of 6c769702b8ac ("ARM: mm: introduce L_PTE_VALID
for page table entries") and 85c672c1bda3 ("ARM: mm: introduce present,
faulting entries for PAGE_NONE") from ARM, which makes use of present,
faulting page table entries for page table entries mapped as PROT_NONE.

The main difference with this implementation is that we can make use of
the two pte type bits in order to avoid allocating a software bit for
identifying PROT_NONE pages, instead reserving the 10b suffix for these
types of mappings.

This is required to prevent users from accessing such pages via syscalls
such as read/write over a pipe.

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