diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2019-03-14 13:30:30 +0900 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-03-14 19:53:57 -0400 |
commit | b4443c17a3c9d652dc5d7679ddca867ee3cdaa9c (patch) | |
tree | d924d472e05e3c61bed74a5823a65af031af8bef /kernel/trace/trace_probe.h | |
parent | dec65d79fd269d05427c8167090bfc9c3d0b56c4 (diff) | |
download | linux-b4443c17a3c9d652dc5d7679ddca867ee3cdaa9c.tar.bz2 |
tracing/probe: Check the size of argument name and body
Check the size of argument name and expression is not 0
and smaller than maximum length.
Link: http://lkml.kernel.org/r/155253783029.14922.12650939303827581096.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_probe.h')
-rw-r--r-- | kernel/trace/trace_probe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace_probe.h b/kernel/trace/trace_probe.h index 8a63f8bc01bc..2177c206de15 100644 --- a/kernel/trace/trace_probe.h +++ b/kernel/trace/trace_probe.h @@ -32,6 +32,7 @@ #define MAX_TRACE_ARGS 128 #define MAX_ARGSTR_LEN 63 #define MAX_ARRAY_LEN 64 +#define MAX_ARG_NAME_LEN 32 #define MAX_STRING_SIZE PATH_MAX /* Reserved field names */ |