Re: [PATCH 07/12] arm64/bti: Advertise BTI in assembly objects

From: Mark Brown

Date: Sat Aug 15 2026 - 17:53:58 EST


On Fri, Aug 14, 2026 at 09:45:24PM -0700, Josh Poimboeuf wrote:
> On a kernel whose text exceeds the +/-128MB direct branch range, the
> linker inserts veneers. With BTI enabled, the veneers' indirect branch
> targets need a BTI landing pad, which not all functions have starting
> with Clang 21 (and for all versions of GCC).

We already have explicit note generation support in asm/assembler.h
which is used in the vDSO code, it probably makes sense to replace that
too. I didn't check if there's potential for the two to collide with
this as is.

Attachment: signature.asc
Description: PGP signature