Patch "ftrace: Fix selftest goto location on error" has been added to the 3.18-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
ftrace: Fix selftest goto location on error
to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ftrace-fix-selftest-goto-location-on-error.patch
and it can be found in the queue-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
46320a6acc4fb58f04bcf78c4c942cc43b20f986Mon Sep 17 00:00:00 2001
From: "Steven Rostedt (VMware)" <[email protected]>
Date: Fri, 1 Sep 2017 12:04:09 -0400
Subject: ftrace: Fix selftest goto location on error
From: Steven Rostedt (VMware) <[email protected]>
commit 46320a6acc4fb58f04bcf78c4c942cc43b20f986 upstream.
In the second iteration of trace_selftest_ops(), the error goto label is wrong in the case where trace_selftest_test_global_cnt is off. In the case of error, it leaks the dynamic ops that was allocated.
--- kernel/trace/trace_selftest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace_selftest.c +1 -1
@@ -272,7 +272,7 @@ static int trace_selftest_ops(struct tra goto out_free;if (cnt >1 ) {if (trace_selftest_test_global_cnt ==0 ) - goto out; + goto out_free; }if (trace_selftest_test_dyn_cnt ==0 ) goto out_free;
Patches currently in stable-queue which might be from [email protected] are
queue-3.18/tracing-apply-trace_clock-changes-to-instance-max-buffer.patch queue-3.18/ftrace-fix-selftest-goto-location-on-error.patch