Skip to content
Commit e4e9f6df authored by Mark Brown's avatar Mark Brown Committed by Will Deacon
Browse files

arm64: bti: Fix support for userspace only BTI



When setting PTE_MAYBE_GP we check system_supports_bti() but this is
true for systems where only CONFIG_BTI is set causing us to enable BTI
on some kernel text. Add an extra check for the kernel mode option,
using an ifdef due to line length.

Fixes: c8027285 ("arm64: Set GP bit in kernel page tables to enable BTI for the kernel")
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200512113950.29996-1-broonie@kernel.org


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 3a88d7c5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment