[PATCH 2/3] arm64: Re-enable kernel BTI for compatible linkers

Nick Desaulniers ndesaulniers at google.com
Tue Nov 24 13:34:24 PST 2026


On Thu, Nov 19, 2026 at 8:58 AM Ard Biesheuvel <ardb+git at google.com> wrote:
>
> From: Ard Biesheuvel <ardb at kernel.org>
>
> The compiler is permitted to omit BTI landing pads from static functions
> that never have their address taken, but are only called directly, even
> if those calls originate from other code sections. This causes problems
> for calls from .init.text into .text if those sections are placed far
> apart, as veneers involving indirect calls will be used in that case.
>
> Now that .text and .init.text are combined,

in modules

> this can no longer happen,

-- 
Thanks,
~Nick Desaulniers



More information about the linux-arm-kernel mailing list