summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2026-09-03 16:24:36 -0700
committerKees Cook <kees@kernel.org>2026-09-21 21:26:11 -0700
commitb9f13e51ad1262dd77b1178c8011153894765c7b (patch)
treeb157ea140dc19aa931fa6c84be9fb38a904e7289 /tools/perf/scripts/python/bin/stackcollapse-report
parent67beeb5621051eda74ca2171ea576c9602bb6cce (diff)
downloadlinux-next-b9f13e51ad1262dd77b1178c8011153894765c7b.tar.gz
linux-next-b9f13e51ad1262dd77b1178c8011153894765c7b.zip
randstruct: report bad casts as warnings rather than notes
find_bad_casts() reports a cast between two randomized structure pointer types with inform(), which renders as a "note:". It has done so since the plugin was originally added, while using error() freely for attribute misuse, UAPI structs, and version mismatches. Clang's implementation of the same check has always been stricter: it rejects such a cast as a full error. There is no reason for the GCC side to be effectively silent about the same problem. Build tested ARCH=x86_64 with CONFIG_RANDSTRUCT_FULL=y and GCC 14.2.0: allmodconfig clean, and defconfig clean under three different random seeds. A deliberate bad cast is still reported, now as a warning, at the correct line and column. Link: https://patch.msgid.link/20260903232438.60394-2-kees@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions