summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2026-07-26 20:40:08 -0300
committerNamhyung Kim <namhyung@kernel.org>2026-07-31 16:41:35 -0700
commit73ac546bd6ba8ed4dc8d7a90fcb9bb8236de1568 (patch)
tree2c74586e055edc13123cfcd8d2bd731bfb9cf60c /tools/perf/scripts/python/bin/stackcollapse-report
parent23010160bb9fd6e7ce940e232cd660b37ab9b20b (diff)
perf machine: Fix NULL parent dereference in fork event processing
machine__process_fork_event() calls machine__findnew_thread() for the parent thread, which can return NULL on allocation failure. The code then dereferences parent via thread__pid(parent) without a NULL check when validating whether the parent PID matches. The later NULL check at thread__fork() does not prevent this earlier dereference. Add a NULL guard before accessing the parent thread. Fixes: 5cb73340d92a ("perf tools: Make fork event processing more resilient") Reported-by: sashiko-bot <sashiko-bot@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Assisted-by: Claude:claude-opus-4.6 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions