summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorRuslan Semchenko <uncleruc2075@gmail.com>2025-06-12 16:18:16 +0300
committerAlexei Starovoitov <ast@kernel.org>2025-06-13 05:11:13 +0300
commitaf91af33c16853c569ca814124781b849886f007 (patch)
tree3f99e1682d84180271af75b953db6a4727b2dcd6 /tools/perf/scripts/python/parallel-perf.py
parent0e93df45c7b45e0dd35668019ceb32cd25371715 (diff)
downloadlinux-af91af33c16853c569ca814124781b849886f007.tar.xz
tools/bpf_jit_disasm: Fix potential negative tpath index in get_exec_path()
If readlink() fails, len will be -1, which can cause negative indexing and undefined behavior. This patch ensures that len is set to 0 on readlink failure, preventing such issues. Signed-off-by: Ruslan Semchenko <uncleruc2075@gmail.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/r/20250612131816.1870-1-uncleruc2075@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions