[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241213210425.526512-1-irogers@google.com>
Date: Fri, 13 Dec 2024 13:04:17 -0800
From: Ian Rogers <irogers@...gle.com>
To: 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>,
Ian Rogers <irogers@...gle.com>, Adrian Hunter <adrian.hunter@...el.com>,
Kan Liang <kan.liang@...ux.intel.com>, "Mike Rapoport (IBM)" <rppt@...nel.org>,
Wei Yang <richard.weiyang@...il.com>, James Clark <james.clark@...aro.org>,
Howard Chu <howardchu95@...il.com>, Kajol Jain <kjain@...ux.ibm.com>,
Athira Rajeev <atrajeev@...ux.vnet.ibm.com>, Ze Gao <zegao2021@...il.com>,
Weilin Wang <weilin.wang@...el.com>, linux-kernel@...r.kernel.org,
linux-perf-users@...r.kernel.org
Subject: [PATCH v1 0/8] Various fixes around undefined behavior
Fix various undefined behavior issues, improve tests to make them
easier to diagnose and add assertions so that problems don't recur.
Ian Rogers (8):
perf disasm: Avoid undefined behavior in incrementing NULL
perf test trace_btf_enum: Skip if permissions are insufficient
tools headers: Update offsetof and container_of
perf evsel: Avoid container_of on a NULL leader
tools headers: Add non-NULL assert to container_of
perf maps: Avoid UB passing NULL to bsearch
perf test shell lock_contention: Extra debug diagnostics
libperf event: Ensure tracing data is multiple of 8 sized
tools/include/linux/kernel.h | 16 ++++++++++------
tools/lib/perf/include/perf/event.h | 1 +
tools/perf/tests/shell/lock_contention.sh | 9 +++++++--
tools/perf/tests/shell/trace_btf_enum.sh | 11 +++++++++++
tools/perf/util/disasm.c | 7 +++++--
tools/perf/util/evsel.c | 2 ++
tools/perf/util/maps.c | 9 ++++++---
7 files changed, 42 insertions(+), 13 deletions(-)
--
2.47.1.613.gc27f4b7a9f-goog
Powered by blists - more mailing lists