]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Use BTI C directly and unconditionally
authorMark Brown <broonie@kernel.org>
Tue, 14 Dec 2021 15:27:14 +0000 (15:27 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 14 Dec 2021 18:12:58 +0000 (18:12 +0000)
commit4cae39fd99281dc520c61b11009a6e6bbf7111ef
tree6bf39f9f07ffeebf8cac95fd921ca9b813ac6e6e
parenta9e404972bbe1b1e0769db44b556415bd4151b6f
arm64: Use BTI C directly and unconditionally

Now we have a macro for BTI C that looks like a regular instruction change
all the users of the current BTI_C macro to just emit a BTI C directly and
remove the macro.

This does mean that we now unconditionally BTI annotate all assembly
functions, meaning that they are worse in this respect than code generated
by the compiler. The overhead should be minimal for implementations with a
reasonable HINT implementation.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20211214152714.2380849-4-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/linkage.h
arch/arm64/kernel/entry-ftrace.S
arch/arm64/lib/kasan_sw_tags.S