]> 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)
commitcacf7f19b1708a5c97cfdcbda7627c27f5a9c642
tree6bf39f9f07ffeebf8cac95fd921ca9b813ac6e6e
parent1039ab991e42b2b8dc8b7db0f7e51c911e3d129d
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