summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2026-06-08 14:10:43 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-06-11 00:56:02 +0300
commit903b0526dcf86d030c5970b4b0a67f9c227368e2 (patch)
treeae08c4f3a08f8643f181bce16fa9e3ad8804d6eb /scripts/Makefile.thinlto
parentfd1f70776add263f8ef38a87ae593c75303f1dcd (diff)
downloadlinux-903b0526dcf86d030c5970b4b0a67f9c227368e2.tar.xz
perf bpf: Add NULL check for btf__type_by_id() in synthesize_bpf_prog_name()
synthesize_bpf_prog_name() calls btf__type_by_id() and immediately dereferences the result via t->name_off without checking for NULL. btf__type_by_id() returns NULL when the type_id is invalid or out of range. When processing perf.data files, finfo->type_id comes from untrusted input, so an invalid ID causes a NULL pointer dereference. Fix by checking t for NULL before dereferencing. Reported-by: sashiko-bot <sashiko-bot@kernel.org> Fixes: fc462ac75b36daaa ("perf bpf: Extract logic to create program names from perf_event__synthesize_one_bpf_prog()") Cc: Song Liu <songliubraving@fb.com> Assisted-by: Claude:claude-opus-4.6 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions