aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorNaveen N. Rao <[email protected]>2019-07-04 14:34:42 +0000
committerSteven Rostedt (VMware) <[email protected]>2019-08-30 20:49:07 +0000
commit5b0022dd32b7c2e15edf1827ba80aa1407edf9ff (patch)
treeb7e6fca3afb0ed19eaa69acb4115f62b41913f82 /tools/perf/scripts/python/check-perf-trace.py
parentftrace: Check for empty hash and comment the race with registering probes (diff)
downloadkernel-5b0022dd32b7c2e15edf1827ba80aa1407edf9ff.tar.gz
kernel-5b0022dd32b7c2e15edf1827ba80aa1407edf9ff.zip
ftrace: Check for successful allocation of hash
In register_ftrace_function_probe(), we are not checking the return value of alloc_and_copy_ftrace_hash(). The subsequent call to ftrace_match_records() may end up dereferencing the same. Add a check to ensure this doesn't happen. Link: http://lkml.kernel.org/r/26e92574f25ad23e7cafa3cf5f7a819de1832cbe.1562249521.git.naveen.n.rao@linux.vnet.ibm.com Cc: [email protected] Fixes: 1ec3a81a0cf42 ("ftrace: Have each function probe use its own ftrace_ops") Signed-off-by: Naveen N. Rao <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions