diff options
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2019-07-04 20:04:42 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-06 10:22:13 +0200 |
commit | 9d98e0f4859d970291dc95996d8fdee058455edc (patch) | |
tree | dd3ea2650f3dca56ab6f077462b443748e13a65b /fs/binfmt_misc.c | |
parent | f184b16748f496cd399f3823151f4a6ced5a57c6 (diff) | |
download | linux-stable-9d98e0f4859d970291dc95996d8fdee058455edc.tar.gz linux-stable-9d98e0f4859d970291dc95996d8fdee058455edc.tar.bz2 linux-stable-9d98e0f4859d970291dc95996d8fdee058455edc.zip |
ftrace: Check for successful allocation of hash
commit 5b0022dd32b7c2e15edf1827ba80aa1407edf9ff upstream.
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: stable@vger.kernel.org
Fixes: 1ec3a81a0cf42 ("ftrace: Have each function probe use its own ftrace_ops")
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/binfmt_misc.c')
0 files changed, 0 insertions, 0 deletions