Commit dd0ec30
committed
perf evsel: Ensure the fallback message is always written to
JIRA: https://issues.redhat.com/browse/RHEL-78200
upstream
========
commit 24937ee
Author: Ian Rogers <irogers@google.com>
Date: Thu Sep 18 10:24:15 2025 -0700
description
===========
The fallback message is unconditionally printed in places like
record__open().
If no fallback is attempted this can lead to printing uninitialized
data, crashes, etc.
Fixes: c0a5434 ("perf evsel: Introduce event fallback method")
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Anubhav Shelat <ashelat@redhat.com>1 parent e82b970 commit dd0ec30
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3562 | 3562 | | |
3563 | 3563 | | |
3564 | 3564 | | |
3565 | | - | |
| 3565 | + | |
3566 | 3566 | | |
3567 | 3567 | | |
3568 | 3568 | | |
3569 | 3569 | | |
3570 | 3570 | | |
3571 | 3571 | | |
3572 | 3572 | | |
3573 | | - | |
| 3573 | + | |
3574 | 3574 | | |
3575 | 3575 | | |
3576 | 3576 | | |
| |||
3593 | 3593 | | |
3594 | 3594 | | |
3595 | 3595 | | |
3596 | | - | |
| 3596 | + | |
3597 | 3597 | | |
3598 | 3598 | | |
3599 | 3599 | | |
3600 | 3600 | | |
3601 | | - | |
| 3601 | + | |
3602 | 3602 | | |
3603 | 3603 | | |
3604 | 3604 | | |
3605 | 3605 | | |
3606 | | - | |
| 3606 | + | |
| 3607 | + | |
| 3608 | + | |
3607 | 3609 | | |
3608 | 3610 | | |
3609 | 3611 | | |
| |||
0 commit comments