]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Aug 2021 11:08:02 +0000 (13:08 +0200)
commit1b881d7aef94fcfa3b16aa05aceb7d9e65021f3c
treec5b831ef9495a42feb6f8efbe7eaa5a5f301d8dd
parent094fda6e88157ecc05083aea336501f0d8dc71bb
tracing: Reject string operand in the histogram expression

commit a9d10ca4986571bffc19778742d508cc8dd13e02 upstream.

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: 1ed38f5f12c16 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace_events_hist.c