On 14/04/2026 21:48, Arnaldo Carvalho de Melo wrote:
> Hi,
>
> This is picking up from what was reported in the previous
> series, pre-existing lack of perf.data file validation, processing files
> and buffers in header.c in a similar fashion.
>
> There is more to process in the trace data, but that is a
> different can of worms that needs to be dealt with in a similar,
> upcoming patch series,
>
> This is probably 7.2 material, but if feeling this can still
> sneak into 7.1, feel free to do it :-)
>
> Now lets see what Sashiko discovers while I still don't have it
> running locally right after Claude, before submitting it publicly, which
> will soon happen :-)
If only checkpatch.pl ran Sashiko automatically... It would be one less
box to tick to get it right, of the many many boxes.
>
> - Arnaldo
>
> Arnaldo Carvalho de Melo (4):
> perf header: Add section bounds checking to the fd read path
> perf header: Validate string length before allocating in do_read_string()
> perf header: Sanity check HEADER_EVENT_DESC
> perf header: Validate bitmap size before allocating in do_read_bitmap()
>
> tools/perf/util/header.c | 33 +++++++++++++++++++++++++++------
> 1 file changed, 27 insertions(+), 6 deletions(-)
>