Sami Tolvanen 800618f955 arm64: ftrace: use function_nocfi for ftrace_call
With CONFIG_CFI_CLANG, the compiler replaces function pointers with
jump table addresses, which breaks dynamic ftrace as the address of
ftrace_call is replaced with the address of ftrace_call.cfi_jt. Use
function_nocfi() to get the address of the actual function instead.

Suggested-by: Ben Dai <ben.dai@unisoc.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210408182843.1754385-17-samitolvanen@google.com
2021-04-08 16:04:23 -07:00
..
2021-02-26 10:19:03 -08:00
2021-02-23 09:28:51 -08:00
2019-07-08 09:54:55 -07:00
2021-03-22 12:45:13 +00:00
2020-06-01 15:18:27 -07:00
2020-09-07 15:00:52 +01:00
2021-02-04 13:59:49 +00:00
2020-05-01 16:28:59 +01:00
2021-01-07 18:06:52 -05:00
2019-04-23 18:01:57 +01:00
2021-02-04 13:59:49 +00:00
2020-12-15 12:13:41 -08:00
2021-02-21 13:31:43 -08:00