Re: [PATCH v1] perf machine: Add session back pointer to fix out of bounds read
From: Arnaldo Carvalho de Melo
Date: Fri Sep 25 2026 - 08:12:07 EST
On Thu, Sep 17, 2026 at 11:26:20PM -0700, Ian Rogers wrote:
> A NULL session is treated as live. The tests use synthetic pids that
> have no /proc entry, so the read fails there and the e_machine falls
> back to EM_HOST as before, rather than being decided by whatever the
> out of bounds read happened to return. perf inject registers its
> session with the aslr tool once the session exists, before any event is
> processed, so that tool keeps reporting file based threads as not live.
>
> Fixes: 70351029b556 ("perf thread: Add support for reading the e_machine type for a thread")
> Assisted-by: Antigravity:gemini-3.1-pro
Thanks, applied to perf-tools-next, for v7.4.
- Arnaldo