diff options
author | Will Deacon <will@kernel.org> | 2020-06-15 18:27:43 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-06-16 19:21:07 +0300 |
commit | 034aa9cd698e315c767af1bac3fd1ff8898d2cd7 (patch) | |
tree | 6529aff9bc5aa4384b5a091ebef6364c7f56332b /include/linux/overflow.h | |
parent | 8dd4daa04278d7437641962ed53b843c0b0ec4a9 (diff) | |
download | linux-034aa9cd698e315c767af1bac3fd1ff8898d2cd7.tar.xz |
arm64: pgtable: Clear the GP bit for non-executable kernel pages
Commit cca98e9f8b5e ("mm: enforce that vmap can't map pages executable")
introduced 'pgprot_nx(prot)' for arm64 but collided silently with the
BTI support during the merge window, which endeavours to clear the GP
bit for non-executable kernel mappings in set_memory_nx().
For consistency between the two APIs, clear the GP bit in pgprot_nx().
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200615154642.3579-1-will@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions