]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: probeevent: Fix to make the type of $comm string
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 7 May 2019 13:56:02 +0000 (22:56 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 May 2019 16:22:12 +0000 (18:22 +0200)
commitdda71c1663c808c72cb95d59cbd0989f767bd9d4
treec4665ee3509cfb35b40f96c6b750b8e23451c2a8
parent95142e28042b1f51cbeec81488799d163eb67242
tracing: probeevent: Fix to make the type of $comm string

commit 3dd1f7f24f8ceec00bbbc364c2ac3c893f0fdc4c upstream.

Fix to make the type of $comm "string".  If we set the other type to $comm
argument, it shows meaningless value or wrong data. Currently probe events
allow us to set string array type (e.g. ":string[2]"), or other digit types
like x8 on $comm. But since clearly $comm is just a string data, it should
not be fetched by other types including array.

Link: http://lkml.kernel.org/r/155723736241.9149.14582064184468574539.stgit@devnote2
Cc: Andreas Ziegler <andreas.ziegler@fau.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: stable@vger.kernel.org
Fixes: 533059281ee5 ("tracing: probeevent: Introduce new argument fetching code")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace_probe.c