diff options
author | 2017-02-02 16:59:06 -0500 | |
---|---|---|
committer | 2017-02-03 10:59:23 -0500 | |
commit | ae98d27afc3bde5a48f440d905317602a5cfb0d2 (patch) | |
tree | 8b49f804b55c771a3e8f106438551fa79a700939 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ftrace: Reset fgd->hash in ftrace_graph_write() (diff) | |
download | linux-dev-ae98d27afc3bde5a48f440d905317602a5cfb0d2.tar.xz linux-dev-ae98d27afc3bde5a48f440d905317602a5cfb0d2.zip |
ftrace: Have set_graph_functions handle write with RDWR
Since reading the set_graph_functions uses seq functions, which sets the
file->private_data pointer to a seq_file descriptor. On writes the
ftrace_graph_data descriptor is set to file->private_data. But if the file
is opened for RDWR, the ftrace_graph_write() will incorrectly use the
file->private_data descriptor instead of
((struct seq_file *)file->private_data)->private pointer, and this can crash
the kernel.
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions