diff options
| author | Ian Rogers <irogers@google.com> | 2026-01-07 16:26:25 -0800 |
|---|---|---|
| committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2026-01-23 13:34:30 -0500 |
| commit | 00f13e28a9c3acd40f0551cde7e9d2d1a41585bf (patch) | |
| tree | 8821ce9f3b247667b7309d492be93909a14ad733 /tools/perf/lib/git@git.tavy.me:linux.git | |
| parent | 90f9f5d64cae4e72defd96a2a22760173cb3c9ec (diff) | |
tracing: Avoid possible signed 64-bit truncation
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>
Diffstat (limited to 'tools/perf/lib/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
