Re: [PATCH v3 0/3] perf header: Fix memory corruption and unnecessary warning

From: Arnaldo Carvalho de Melo

Date: Sun Sep 13 2026 - 17:43:13 EST


On Thu, Sep 10, 2026 at 02:12:17PM -0700, Ian Rogers wrote:
> Some minor fixes that have shown up during testing.
>
> v3: Fix Sashiko include nit. Accidentally posted wrong 1st patch in v2 (sorry :-( )
> v2: Fix missing newling for pr_warning:
> https://lore.kernel.org/linux-perf-users/20260910175634.3014018-1-irogers@xxxxxxxxxx/
> v1:
> https://lore.kernel.org/linux-perf-users/20260910173715.2996571-1-irogers@xxxxxxxxxx/

Thanks, applied to perf-tools-next, for v7.4.

- Arnaldo

> Ian Rogers (3):
> perf header: Fix HEADER_COMPRESSED validation for comp_mmap_len
> perf header: Fix potential memory corruption in cpu_cache_level__read
> perf header: Transition WARN macros to debug.h equivalents
>
> tools/perf/util/header.c | 122 ++++++++++++++++++++++++---------------
> 1 file changed, 74 insertions(+), 48 deletions(-)
>
> --
> 2.55.0.1007.g17ff1f9808-goog