aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-inline.c
diff options
context:
space:
mode:
authorSteven Rostedt <[email protected]>2025-10-08 15:48:35 +0000
committerSteven Rostedt (Google) <[email protected]>2025-10-08 16:10:26 +0000
commit4f7bf54b07e5acf79edd58dafede4096854776cd (patch)
treed9fb7826270ae00107aabfe8ea1acee4c8c9eb94 /lib/mpi/mpi-inline.c
parenttracing/osnoise: Replace kmalloc + copy_from_user with memdup_user_nul (diff)
downloadkernel-4f7bf54b07e5acf79edd58dafede4096854776cd.tar.gz
kernel-4f7bf54b07e5acf79edd58dafede4096854776cd.zip
tracing: Fix wakeup tracers on failure of acquiring calltime
The functions wakeup_graph_entry() and wakeup_graph_return() both call func_prolog_preempt_disable() that will test if the data->disable is already set and if not, increment it and disable preemption. If it was set, it returns false and the caller exits. The caller of this function must decrement the disable counter, but misses doing so if the calltime fails to be acquired. Instead of exiting out when calltime is NULL, change the logic to do the work if it is not NULL and still do the clean up at the end of the function if it is NULL. Cc: [email protected] Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Link: https://lore.kernel.org/[email protected] Fixes: a485ea9e3ef3 ("tracing: Fix irqsoff and wakeup latency tracers when using function graph") Reported-by: Sasha Levin <[email protected]> Closes: https://lore.kernel.org/linux-trace-kernel/[email protected]/ Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions