]> git.baikalelectronics.ru Git - kernel.git/commit
s390/ftrace: fix ftrace_caller/ftrace_regs_caller generation
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 23 Feb 2022 12:02:59 +0000 (13:02 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 1 Mar 2022 19:41:28 +0000 (20:41 +0100)
commitf78101f57e8727eb8583e30aac9301507ce535a7
tree7197c2dd10105a8244fa2258931d943bb462fc87
parentdd5cc8d2e51d588baa5bb42bd94b5e339ac3865f
s390/ftrace: fix ftrace_caller/ftrace_regs_caller generation

ftrace_caller was used for both ftrace_caller and ftrace_regs_caller,
which means that the target address of the hotpatch trampoline was
never updated.

With commit 65b88d4755f2 ("s390/ftrace: provide separate
ftrace_caller/ftrace_regs_caller implementations") a separate
ftrace_regs_caller entry point was implemeted, however it was
forgotten to implement the necessary changes for ftrace_modify_call
and ftrace_make_call, where the branch target has to be modified
accordingly.

Therefore add the missing code now.

Fixes: 65b88d4755f2 ("s390/ftrace: provide separate ftrace_caller/ftrace_regs_caller implementations")
Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/ftrace.c