]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Reject string operand in the histogram expression
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 27 Jul 2021 22:55:43 +0000 (07:55 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 4 Aug 2021 21:49:26 +0000 (17:49 -0400)
commitcbf5a6b48b1a3d86c759e33785eec09154eb5ef6
tree6339a279fa03f82446029b89c95eb8125dc5e491
parentabaa603462f0dc71c012adbaa1c66408c0e4e614
tracing: Reject string operand in the histogram expression

Since the string type can not be the target of the addition / subtraction
operation, it must be rejected. Without this fix, the string type silently
converted to digits.

Link: https://lkml.kernel.org/r/162742654278.290973.1523000673366456634.stgit@devnote2
Cc: stable@vger.kernel.org
Fixes: b3a6665e4f1ca ("tracing: Add simple expression support to hist triggers")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c