Re: [PATCH v3] arm64: ftrace: use function_nocfi for _mcount as well
From: Will Deacon
Date: Tue Oct 12 2021 - 04:47:13 EST
On Mon, 11 Oct 2021 18:20:59 +0530, Sumit Garg wrote:
> Commit 800618f955a9 ("arm64: ftrace: use function_nocfi for ftrace_call")
> only fixed address of ftrace_call but address of _mcount needs to be
> fixed as well. Use function_nocfi() to get the actual address of _mcount
> function as with CONFIG_CFI_CLANG, the compiler replaces function pointers
> with jump table addresses which breaks dynamic ftrace as the address of
> _mcount is replaced with the address of _mcount.cfi_jt.
>
> [...]
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64: ftrace: use function_nocfi for _mcount as well
https://git.kernel.org/arm64/c/de56379f21c7
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev