aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/Makefile
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2017-10-26 18:36:47 +0100
committerWill Deacon <will.deacon@arm.com>2017-10-30 12:41:15 +0000
commit6218f96c58dbf44a06aeaf767aab1f54fc397838 (patch)
tree4134665de1e47326768e2e5a51e1c330334c386d /arch/arm64/Makefile
parentarm64: uapi: Remove PSR_Q_BIT (diff)
downloadlinux-dev-6218f96c58dbf44a06aeaf767aab1f54fc397838.tar.xz
linux-dev-6218f96c58dbf44a06aeaf767aab1f54fc397838.zip
arm64: Implement arch-specific pte_access_permitted()
The generic pte_access_permitted() implementation only checks for pte_present() (together with the write permission where applicable). However, for both kernel ptes and PROT_NONE mappings pte_present() also returns true on arm64 even though such mappings are not user accessible. Additionally, arm64 now supports execute-only user permission (PROT_EXEC) which is implemented by clearing the PTE_USER bit. With this patch the arm64 implementation of pte_access_permitted() checks for the PTE_VALID and PTE_USER bits together with writable access if applicable. Cc: <stable@vger.kernel.org> Reported-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/Makefile')
0 files changed, 0 insertions, 0 deletions