arm64: mm: Mark executable text as guarded pages
authorMark Brown <broonie@kernel.org>
Wed, 6 May 2020 19:51:33 +0000 (20:51 +0100)
committerWill Deacon <will@kernel.org>
Thu, 7 May 2020 16:53:20 +0000 (17:53 +0100)
commit67d4a1cd09765db92581dbce8438305ea0e06004
tree01ad148f8f9a897754128dce0b94e94524e4bf58
parentfa76cfe65c1d748ef418e930a4b631a03b28f04c
arm64: mm: Mark executable text as guarded pages

When the kernel is built for BTI and running on a system which supports
make all executable text guarded pages to ensure that loadable module
and JITed BPF code is protected by BTI.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20200506195138.22086-7-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/pageattr.c