]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Support execute-only permissions with Enhanced PAN
authorVladimir Murzin <vladimir.murzin@arm.com>
Fri, 12 Mar 2021 17:38:10 +0000 (17:38 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 26 Mar 2021 09:37:23 +0000 (09:37 +0000)
commitf5f5f2f7c857902a0538f85e76571e9406268e10
tree0411230b8d6c259233a6aadcd0c0aaf261b86c2a
parent4f0be5a267ce1c80d673727864ba230cec2dd40b
arm64: Support execute-only permissions with Enhanced PAN

Enhanced Privileged Access Never (EPAN) allows Privileged Access Never
to be used with Execute-only mappings.

Absence of such support was a reason for a98f7df47d51 ("arm64: Revert
support for execute-only user mappings"). Thus now it can be revisited
and re-enabled.

Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210312173811.58284-2-vladimir.murzin@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig
arch/arm64/include/asm/cpucaps.h
arch/arm64/include/asm/pgtable-prot.h
arch/arm64/include/asm/pgtable.h
arch/arm64/include/asm/sysreg.h
arch/arm64/kernel/cpufeature.c
arch/arm64/mm/fault.c
mm/mmap.c