diff --git a/kmod/core/core.c b/kmod/core/core.c index 7f2a445..5881429 100644 --- a/kmod/core/core.c +++ b/kmod/core/core.c @@ -413,7 +413,7 @@ kpatch_ftrace_handler(unsigned long ip, unsigned long parent_ip, } done: if (func) - regs->ip = func->new_addr; + regs->ip = func->new_addr + MCOUNT_INSN_SIZE; preempt_enable_notrace(); }