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)
commit742a15b1a23aa43bde2d9d681281ec1925be13fd
tree6bf39f9f07ffeebf8cac95fd921ca9b813ac6e6e
parent481ee45ce9e078715b4ca50fcaea518e3aee1aa7
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