diff options
| author | Ian Rogers <irogers@google.com> | 2026-01-07 16:26:25 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-02-11 13:41:53 +0100 |
| commit | 98bf5bc8cb8cbc4c33b3da38e529e6fe591868cb (patch) | |
| tree | ae2553d65ad1a07ef4ffd4272758f76b67784e3f /tools/perf/scripts/python | |
| parent | 6dd87f6afe9e9a2839429192360c1026e2689e4f (diff) | |
tracing: Avoid possible signed 64-bit truncation
[ Upstream commit 00f13e28a9c3acd40f0551cde7e9d2d1a41585bf ]
64-bit truncation to 32-bit can result in the sign of the truncated
value changing. The cmp_mod_entry is used in bsearch and so the
truncation could result in an invalid search order. This would only
happen were the addresses more than 2GB apart and so unlikely, but
let's fix the potentially broken compare anyway.
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20260108002625.333331-1-irogers@google.com
Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
