diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-07-25 16:02:06 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-07-25 21:25:16 -0400 |
commit | 15cc78644d0075e76d59476a4467e7143860f660 (patch) | |
tree | ac88f89ead2ac9f6f04679e59776a400e8c98146 /certs | |
parent | 57ea2a34adf40f3a6e88409aafcf803b8945619a (diff) | |
download | linux-15cc78644d0075e76d59476a4467e7143860f660.tar.gz linux-15cc78644d0075e76d59476a4467e7143860f660.tar.bz2 linux-15cc78644d0075e76d59476a4467e7143860f660.zip |
tracing: Fix possible double free in event_enable_trigger_func()
There was a case that triggered a double free in event_trigger_callback()
due to the called reg() function freeing the trigger_data and then it
getting freed again by the error return by the caller. The solution there
was to up the trigger_data ref count.
Code inspection found that event_enable_trigger_func() has the same issue,
but is not as easy to trigger (requires harder to trigger failures). It
needs to be solved slightly different as it needs more to clean up when the
reg() function fails.
Link: http://lkml.kernel.org/r/20180725124008.7008e586@gandalf.local.home
Cc: stable@vger.kernel.org
Fixes: 7862ad1846e99 ("tracing: Add 'enable_event' and 'disable_event' event trigger commands")
Reivewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions