[PATCHES 0/8 v1] perf machine fixes

From: Arnaldo Carvalho de Melo

Date: Sun Jul 26 2026 - 19:40:33 EST


Hi,

Here is a series of patches fixing issues with the 'struct machine'
methods, please consider applying to perf-tools-next.

- Arnaldo

Arnaldo Carvalho de Melo (8):
perf machine: Fix fd leak on bounds check in maps__set_modules_path_dir()
perf machine: Fix NULL parent dereference in fork event processing
perf machine: Guard against NULL strlist in machines__findnew()
perf machine: Check snprintf truncation in machines__findnew()
perf machine: Don't abort guest map creation on first inaccessible dir
perf machine: Reset errno before strtol in guest kernel map creation
perf machine: Free scandir entries in guest kernel map creation
perf machine: Check snprintf truncation for guest kallsyms path

tools/perf/util/machine.c | 43 +++++++++++++++++++++++++++------------
1 file changed, 30 insertions(+), 13 deletions(-)

--
2.55.0