[PATCH] arm64: ftrace: add missing BTIs
Mark Brown
broonie at kernel.org
Mon Nov 29 08:50:39 PST 2021
On Mon, Nov 29, 2021 at 01:57:09PM +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.
Reviewed-by: Mark Brown <broonie at kernel.org>
> In future we may wish to consider adding a new SYM_CODE_START_*()
> variant which has an implicit BTI.
> +#ifdef BTI_C
> + BTI_C
> +#endif
The ifdefs here feel ugly enough that it might be worth doing that right
now TBH. I'm trying to think of any cases where we might also need a
BTI J but nothing springs to mind right now.
-------------- 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/20211129/cf9f25dc/attachment.sig>
More information about the linux-arm-kernel
mailing list