Repository navigation
Commit 92b6279
tracing: Change tracing_buffers_fops to rely on tracing_get_cpu()
commit 46ef2be upstream.
tracing_buffers_open() is racy, the memory inode->i_private points
to can be already freed.
Change debugfs_create_file("trace_pipe_raw", data) caller to pass
"data = tr", tracing_buffers_open() can use tracing_get_cpu().
Change debugfs_create_file("snapshot_raw_fops", data) caller too,
this file uses tracing_buffers_open/release.
Link: http://lkml.kernel.org/r/20130723152600.GA23720@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 23b625f commit 92b6279
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4941 | 4941 | | |
4942 | 4942 | | |
4943 | 4943 | | |
4944 | | - | |
4945 | | - | |
| 4944 | + | |
4946 | 4945 | | |
4947 | 4946 | | |
4948 | 4947 | | |
| |||
4961 | 4960 | | |
4962 | 4961 | | |
4963 | 4962 | | |
4964 | | - | |
| 4963 | + | |
4965 | 4964 | | |
4966 | 4965 | | |
4967 | 4966 | | |
| |||
5568 | 5567 | | |
5569 | 5568 | | |
5570 | 5569 | | |
5571 | | - | |
| 5570 | + | |
5572 | 5571 | | |
5573 | 5572 | | |
5574 | 5573 | | |
| |||
5581 | 5580 | | |
5582 | 5581 | | |
5583 | 5582 | | |
5584 | | - | |
| 5583 | + | |
5585 | 5584 | | |
5586 | 5585 | | |
5587 | 5586 | | |
| |||
0 commit comments