[PATCH v3 2/2] arm64: Work around missing `bti c` in modules
Mark Brown
broonie at kernel.org
Fri Sep 2 04:32:53 PDT 2022
On Thu, Sep 01, 2022 at 05:15:51PM -0700, D Scott Phillips wrote:
> GCC does not insert a `bti c` instruction at the beginning of a function
> when all callers reach the function through a direct branch[1]. In the case
> of cross-section calls (like __init to non __init), a thunk may be inserted
> which uses an indirect branch. If that happens, the first instruction in
> the callee function will result in a Branch Target Exception due to the
> missing `bti c`.
Reviewed-by: Mark Brown <broonie at kernel.org>
-------------- 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/20220902/23b0f1d7/attachment.sig>
More information about the linux-arm-kernel
mailing list