[PATCH 0/3] arm64: Combine module .init.text with .text
Nick Desaulniers
ndesaulniers at google.com
Tue Nov 24 11:38:08 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>
>
> This is a follow-up to "arm64: Implement support for BTI veneers" [0]
Forgive me for taking forever to respond here...
Does this series supersede [0] (i.e. I shouldn't spend cycles/time
reviewing [0]), or compliments/"goes on top?"
> which adds support to the module loader for indirect calls to functions
> that were emitted by the compiler without a BTI landing pad.
>
> This series takes the ppc approach, and simply combines .init.text with
> .text when loading modules, so that cross-section calls in the same
> module (which may originate in the same compilation unit) can never go
> out of direct branching range.
>
> This makes the BTI veneer solution unnecessary, and permits some other
Sounds like it supersede's then?
> simplifications that were added, even though .init.text and .text rarely
> end up far away from each other in practice.
>
> Live patch needs additional work, so BTI remains disabled when live patch
> is enabled. (It expects to be able to make indirect calls to any
> function in vmlinux or elsewhere, even if they were never exported)
Doesn't x86 have the same problem with endbr? How does live patch
work with CET enabled?
>
> Cc: Mark Brown <broonie at kernel.org>
> Cc: Josh Poimboeuf <jpoimboe at kernel.org>
> Cc: Nick Desaulniers <ndesaulniers at google.com>
>
> [0] https://lore.kernel.org/all/20261005110511.157016-4-ardb+git@google.com/
>
> Ard Biesheuvel (3):
> arm64: module: Keep executable init sections in the core text region
> arm64: Re-enable kernel BTI for compatible linkers
> arm64: module: Revert separate init PLT and init ftrace trampoline
>
> arch/arm64/Kconfig | 17 ++--
> arch/arm64/include/asm/module.h | 11 +--
> arch/arm64/include/asm/module.lds.h | 2 -
> arch/arm64/kernel/ftrace.c | 13 +--
> arch/arm64/kernel/module-plts.c | 98 +++++++-------------
> arch/arm64/kernel/module.c | 46 ++++++---
> 6 files changed, 84 insertions(+), 103 deletions(-)
>
> --
> 2.56.1.708.g77570a6a1d-goog
>
--
Thanks,
~Nick Desaulniers
More information about the linux-arm-kernel
mailing list