]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: asm: Override SYM_FUNC_START when building the kernel with BTI
authorMark Brown <broonie@kernel.org>
Wed, 6 May 2020 19:51:30 +0000 (20:51 +0100)
committerWill Deacon <will@kernel.org>
Thu, 7 May 2020 16:53:20 +0000 (17:53 +0100)
commitd07812b7c580a6b00dd972144c8182cdec36c3e9
tree052a8bb57dca406062ef023a38d2c3d1fc69c743
parente49e6e01eb509686dc42d4e7b34cd2ce2c2fa23f
arm64: asm: Override SYM_FUNC_START when building the kernel with BTI

When the kernel is built for BTI override SYM_FUNC_START and related macros
to add a BTI landing pad to the start of all global functions, ensuring that
they are BTI safe. The ; at the end of the BTI_x macros is for the
benefit of the macro-generated functions in xen-hypercall.S.

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