summaryrefslogtreecommitdiffstats
path: root/kernel/livepatch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-06-02 17:55:01 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2022-06-02 17:55:01 +0200
commit7c9e960c636306f632ccae623bf94b2b53d35cbd (patch)
tree5c1ed6ca4a3224e406319ae28cf9a5bc7d0a9a59 /kernel/livepatch
parentMerge tag 'printk-for-5.19-fixup' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
parentlivepatch: Remove klp_arch_set_pc() and asm/livepatch.h (diff)
downloadlinux-7c9e960c636306f632ccae623bf94b2b53d35cbd.tar.xz
linux-7c9e960c636306f632ccae623bf94b2b53d35cbd.zip
Merge tag 'livepatching-for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching
Pull livepatching cleanup from Petr Mladek: - Remove duplicated livepatch code [Christophe] * tag 'livepatching-for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching: livepatch: Remove klp_arch_set_pc() and asm/livepatch.h
Diffstat (limited to 'kernel/livepatch')
-rw-r--r--kernel/livepatch/patch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/livepatch/patch.c b/kernel/livepatch/patch.c
index c172bf92b576..4c4f5a776d80 100644
--- a/kernel/livepatch/patch.c
+++ b/kernel/livepatch/patch.c
@@ -118,7 +118,7 @@ static void notrace klp_ftrace_handler(unsigned long ip,
if (func->nop)
goto unlock;
- klp_arch_set_pc(fregs, (unsigned long)func->new_func);
+ ftrace_instruction_pointer_set(fregs, (unsigned long)func->new_func);
unlock:
ftrace_test_recursion_unlock(bit);