[PATCH] arm64/module: Fix livepatch BTI exceptions with Clang 21+

Mark Brown broonie at kernel.org
Tue Aug 11 10:23:03 PDT 2026


On Tue, Aug 11, 2026 at 09:17:09AM -0700, Nick Desaulniers wrote:
> On Tue, Aug 11, 2026 at 6:18 AM Ard Biesheuvel <ardb at kernel.org> wrote:

> > https://github.com/llvm/llvm-project/issues/215547

> Thanks.

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106671 was closed as
> invalid pointing to the same commit in llvm. What's going on here?
> Where's the corresponding feature request for GCC?

TBH I'd missed that that got closed, basically it's what's in the report
there - the GCC people really dislike the idea of adding landing pads
and want to see veneers added by the linker to fix up issues where
they're missing.

> At the least, I could imagine there being a `-fno-omit-bti-pads` or
> whatever for the kernel to opt into this behavior.

That would be useful.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260811/74067e07/attachment.sig>


More information about the linux-arm-kernel mailing list