[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8b7351d2-6a45-4fef-a149-ae511b52f552@linaro.org>
Date: Tue, 26 Aug 2025 09:38:22 +0100
From: James Clark <james.clark@...aro.org>
To: Ian Rogers <irogers@...gle.com>
Cc: Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Namhyung Kim <namhyung@...nel.org>, Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>, Adrian Hunter <adrian.hunter@...el.com>,
Kan Liang <kan.liang@...ux.intel.com>, Chun-Tse Shao <ctshao@...gle.com>,
Blake Jones <blakejones@...gle.com>, Jan Polensky <japo@...ux.ibm.com>,
Collin Funk <collin.funk1@...il.com>, Howard Chu <howardchu95@...il.com>,
Thomas Gleixner <tglx@...utronix.de>, Nam Cao <namcao@...utronix.de>,
Li Huafei <lihuafei1@...wei.com>, "Steinar H. Gunderson" <sesse@...gle.com>,
Athira Rajeev <atrajeev@...ux.ibm.com>, linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 0/5] Various fixes around undefined behavior
On 21/08/2025 5:38 pm, Ian Rogers wrote:
> Fix various undefined behavior issues, improve tests to make them
> easier to diagnose and add assertions so that problems don't recur.
>
> v2: Add Namhyung's acked-by. Drop container_of assert that ptr !=
> NULL, to simplify the series. The bsearch UB fix was picked up as
> a patch by CT:
> https://lore.kernel.org/r/20250303183646.327510-2-ctshao@google.com
> It seems this patch series fell-through the cracks as v1 was
> sent/acked 9 months ago.
>
> v1: https://lore.kernel.org/lkml/20241213210425.526512-1-irogers@google.com/
>
> Ian Rogers (5):
> perf disasm: Avoid undefined behavior in incrementing NULL
> perf test trace_btf_enum: Skip if permissions are insufficient
> perf evsel: Avoid container_of on a NULL leader
> perf test shell lock_contention: Extra debug diagnostics
> libperf event: Ensure tracing data is multiple of 8 sized
>
> tools/lib/perf/include/perf/event.h | 1 +
> tools/perf/tests/shell/lock_contention.sh | 7 ++++++-
> tools/perf/tests/shell/trace_btf_enum.sh | 11 +++++++++++
> tools/perf/util/disasm.c | 7 +++++--
> tools/perf/util/evsel.c | 2 ++
> 5 files changed, 25 insertions(+), 3 deletions(-)
>
Reviewed-by: James Clark <james.clark@...aro.org>
Powered by blists - more mailing lists