Skip to content

Commit a03eec7

Browse files
committed
Merge tag 'probes-fixes-v6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull probes fix from Masami Hiramatsu: - Fix a potential infinite recursion in fprobe by using preempt_*_notrace() * tag 'probes-fixes-v6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: tracing: fprobe: Fix infinite recursion using preempt_*_notrace()
2 parents 9bfdba9 + a3e892a commit a03eec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/trace/fprobe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ static void fprobe_return(struct ftrace_graph_ret *trace,
352352
size_words = SIZE_IN_LONG(size);
353353
ret_ip = ftrace_regs_get_instruction_pointer(fregs);
354354

355-
preempt_disable();
355+
preempt_disable_notrace();
356356

357357
curr = 0;
358358
while (size_words > curr) {
@@ -368,7 +368,7 @@ static void fprobe_return(struct ftrace_graph_ret *trace,
368368
}
369369
curr += size;
370370
}
371-
preempt_enable();
371+
preempt_enable_notrace();
372372
}
373373
NOKPROBE_SYMBOL(fprobe_return);
374374

0 commit comments

Comments
 (0)