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)
commita9d10ca4986571bffc19778742d508cc8dd13e02
tree6339a279fa03f82446029b89c95eb8125dc5e491
parent2c05caa7ba8803209769b9e4fe02c38d77ae88d0
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: 100719dcef447 ("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