[PATCH] arm64: ftrace: add missing BTIs

Will Deacon will at kernel.org
Thu Dec 2 02:59:25 PST 2021


On Mon, 29 Nov 2021 13:57:09 +0000, Mark Rutland wrote:
> When branch target identifiers are in use, code reachable via an
> indirect branch requires a BTI landing pad at the branch target site.
> 
> When building FTRACE_WITH_REGS atop patchable-function-entry, we miss
> BTIs at the start start of the `ftrace_caller` and `ftrace_regs_caller`
> trampolines, and when these are called from a module via a PLT (which
> will use a `BR X16`), we will encounter a BTI failure, e.g.
> 
> [...]

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

[1/1] arm64: ftrace: add missing BTIs
      https://git.kernel.org/arm64/c/35b6b28e6998

Cheers,
-- 
Will

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



More information about the linux-arm-kernel mailing list