linux/arch/arm64
Catalin Marinas ec663d967b arm64: Improve detection of user/non-user mappings in set_pte(_at)
Commit cab15ce604 ("arm64: Introduce execute-only page access
permissions") allowed a valid user PTE to have the PTE_USER bit clear.
As a consequence, the pte_valid_not_user() macro in set_pte() was
replaced with pte_valid_global() under the assumption that only user
pages have the nG bit set. EFI mappings, however, also have the nG bit
set and set_pte() wrongly ignores issuing the DSB+ISB.

This patch reinstates the pte_valid_not_user() macro and adds the
PTE_UXN bit check since all kernel mappings have this bit set. For
clarity, pte_exec() is renamed to pte_user_exec() as it only checks for
the absence of PTE_UXN. Consequently, the user executable check in
set_pte_at() drops the pte_ng() test since pte_user_exec() is
sufficient.

Fixes: cab15ce604 ("arm64: Introduce execute-only page access permissions")
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2017-01-31 16:44:07 +00:00
..
boot Amlogic fixes for v4.10 2017-01-04 16:42:00 +01:00
configs ARM64: defconfig: enable DRM_MESON as module 2017-01-03 09:31:13 -08:00
crypto
include arm64: Improve detection of user/non-user mappings in set_pte(_at) 2017-01-31 16:44:07 +00:00
kernel arm64: handle sys and undef traps consistently 2017-01-27 17:13:14 +00:00
kvm arm64: Use __tlbi() macros in KVM code 2017-01-27 13:52:34 +00:00
lib arm64: don't pull uaccess.h into *.S 2016-12-26 13:05:17 -05:00
mm arm64: dma-mapping: Fix dma_mapping_error() when bypassing SWIOTLB 2017-01-26 12:25:14 +00:00
net
xen arm64: don't pull uaccess.h into *.S 2016-12-26 13:05:17 -05:00
Kconfig arm64: Kconfig: select COMPAT_BINFMT_ELF only when BINFMT_ELF is set 2017-01-26 12:19:49 +00:00
Kconfig.debug
Kconfig.platforms ARM: SoC driver updates for v4.10 2016-12-15 16:03:25 -08:00
Makefile