[PATCH v8] arm64: Use static call trampolines when kCFI is enabled

Will Deacon will at kernel.org
Wed Apr 1 03:03:43 PDT 2026


On Tue, 31 Mar 2026 13:04:23 +0200, Ard Biesheuvel wrote:
> Implement arm64 support for the 'unoptimized' static call variety, which
> routes all calls through a trampoline that performs a tail call to the
> chosen function, and wire it up for use when kCFI is enabled. This works
> around an issue with kCFI and generic static calls, where the prototypes
> of default handlers such as __static_call_nop() and __static_call_ret0()
> don't match the expected prototype of the call site, resulting in kCFI
> false positives [0].
> 
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: Use static call trampolines when kCFI is enabled
      https://git.kernel.org/arm64/c/e70c2335f889

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list