]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: bti: Provide Kconfig for kernel mode BTI
authorMark Brown <broonie@kernel.org>
Wed, 6 May 2020 19:51:34 +0000 (20:51 +0100)
committerWill Deacon <will@kernel.org>
Thu, 7 May 2020 16:53:20 +0000 (17:53 +0100)
commit20708c10e051668a3b5b8384d211fc9b3c5534c9
treeb14b09d0e74a20333781e04ae3c57a9018776afa
parentb6144057a309fd5ac30c618ff245f67333df84f1
arm64: bti: Provide Kconfig for kernel mode BTI

Now that all the code is in place provide a Kconfig option allowing users
to enable BTI for the kernel if their toolchain supports it, defaulting it
on since this has security benefits. This is a separate configuration
option since we currently don't support secondary CPUs that lack BTI if
the boot CPU supports it.

Code generation issues mean that current GCC 9 versions are not able to
produce usable BTI binaries so we disable support for building with GCC
versions prior to 10, once a fix is backported to GCC 9 the dependencies
will be updated.

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