diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-07-26 20:40:08 -0300 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-07-31 16:41:35 -0700 |
| commit | 73ac546bd6ba8ed4dc8d7a90fcb9bb8236de1568 (patch) | |
| tree | 2c74586e055edc13123cfcd8d2bd731bfb9cf60c /scripts | |
| parent | 23010160bb9fd6e7ce940e232cd660b37ab9b20b (diff) | |
| download | linux-73ac546bd6ba8ed4dc8d7a90fcb9bb8236de1568.tar.gz linux-73ac546bd6ba8ed4dc8d7a90fcb9bb8236de1568.zip | |
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 'scripts')
0 files changed, 0 insertions, 0 deletions
