]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tracing: Propagate is_signed to expression
authorTom Zanussi <zanussi@kernel.org>
Thu, 27 Jan 2022 21:44:17 +0000 (15:44 -0600)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:41:56 +0000 (11:41 +0100)
commit3f5fcbc6c238c8a54c697d9f3d432816022a3878
treea962659e3061a89cef72a72d1ccce1809bc75383
parent461cc00c1599a91809063a6ecdc326193934d522
tracing: Propagate is_signed to expression

BugLink: https://bugs.launchpad.net/bugs/1963889
commit 097f1eefedeab528cecbd35586dfe293853ffb17 upstream.

During expression parsing, a new expression field is created which
should inherit the properties of the operands, such as size and
is_signed.

is_signed propagation was missing, causing spurious errors with signed
operands.  Add it in parse_expr() and parse_unary() to fix the problem.

Link: https://lkml.kernel.org/r/f4dac08742fd7a0920bf80a73c6c44042f5eaa40.1643319703.git.zanussi@kernel.org
Cc: stable@vger.kernel.org
Fixes: 100719dcef447 ("tracing: Add simple expression support to hist triggers")
Reported-by: Yordan Karadzhov <ykaradzhov@vmware.com>
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=215513
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
[sudip: adjust context]
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
kernel/trace/trace_events_hist.c